Problems with Frequency Analysis
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!