trialfun_neuromag

Jyrki Ahveninen jyrki at NMR.MGH.HARVARD.EDU
Fri Jan 5 16:53:28 CET 2007


Greetings,

I tried to start my trip in the field of utilizing Fieldtrip, and I have
problems with neuromag data. I have fieldtrip-20070101.

Using this:

cfg = [];
cfg.dataset = 'myfile.fif';
cfg.trialdef.eventtype  = '?';
definetrial(cfg);

I encounter this problem:

>> definetrial(cfg);
evaluating trialfunction 'trialfun_neuromag'
??? Reference to non-existent field 'trgchan'.

Error in ==> fieldtrip/private/trialfun_neuromag at 11
chanindx = match_str(hdr.label, cfg.trialdef.trgchan);

Error in ==> definetrial at 172
    trl   = feval(cfg.trialfun, cfg);


Am I doing something wrong here?

Cheers,

Jyrki



More information about the fieldtrip mailing list