Error using ==> nargout

Kambiz Tavabi kambiz.tavabi at UNI-MUENSTER.DE
Tue Oct 11 16:26:09 CEST 2005


The errors below result from running the excerpt code provided in the
FIELDTRIP tutorial/example MATLAB script for Time Frequency analysis.  My
MATLAB work directory is set to $:\Matlab\work\FIELDTRIP which contains the
folder 'Subject01.ds' and associated head shape/MRI files.

Any suggestions on what I am doing wrong?

>> cfg = [];
cfg.dataset = 'Subject01.ds';
cfg.channel = {'MEG' 'STIM'};
cfg.trialdef.excludeConditions = {'BAD'};
cfg.trialdef.includeTrigger = 3;
cfg.detrend = 'yes';

dataFIC = preprocessing(cfg);
evaluating trialfunction 'trialfun_ctf_epoched'


??? Error using ==> nargout
Not a valid M-file.

Error in ==> definetrial at 141
    num = nargout(cfg.trialfun);

Error in ==> preprocessing at 263
[cfg] = definetrial(cfg);


============================================
Kambiz Tavabi, Dipl. Psych., MS.

Institute for Biomagnetism and Biosignalanalysis
Muenster University Hospital

Malmedyweg 15
D-48149 Muenster
Germany

phone:   +49-(0)251-83-56884
fax:     +49-(0)251-83-56874
e-Mail: Kambiz.Tavabi at uni-muenster.de

============================================



More information about the fieldtrip mailing list