Problems with Frequency Analysis
显示 更早的评论
I'm getting this error when running frequency analysis:
Undefined function 'ft_preprocessing' for input arguments of type 'struct'.
Error in freqanalysis_avg (line 23) data = ft_preprocessing(pcfg,data);
Error in super_freqanalysis_avg (line 57) freqanalysis_avg(cfg);
This is the preview of the Editor:
function super_freqanalysis_avg(mysubjects)
rootpathname = 'C:\data\';
directories = { 'P1\'; 'P2\'; 'P3\'; 'P4\'; 'P5\'; 'P6\'; 'P7\'; 'P8\'; 'P9\'; 'P10\'; 'P11\'; 'P12\'; 'P13\'; 'P14\'; 'P15\'; 'P16\'; };
subjectnumbers = { '1'; '2'; '3'; '4'; '5'; '6'; '7'; '8'; '9'; '10'; '11'; '12'; '13'; '14'; '15'; '16'; };
if nargin < 1 mysubjects = 1:length(directories) end;
for isub = mysubjects
for isess = 1:4
cfg.pathname = [rootpathname,directories{isub}];
cfg.cleanrestfname = [cfg.pathname,'datarestClean_',subjectnumbers{isub},'_',num2str(isess)];
cfg.cleanfname = [cfg.pathname,'datamazeClean',subjectnumbers{isub},'_',num2str(isess)];
cfg.freqfname = [cfg.pathname,'freqavg',subjectnumbers{isub},'_',num2str(isess)];
freqanalysis_avg(cfg);
end;
end;
If somebody could help in identifying where the problem lies and how to fix it, I'd greatly appreciate it. Thanks.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!