trialfun_neuromag
Jan Mathijs Schoffelen
Jan.Schoffelen at FCDONDERS.RU.NL
Fri Jan 5 22:25:50 CET 2007
Dear Jyrki,
You have to specify the name of the channel that contains the triggers.
It should be something like cfg.trialdef.trgchan = 'the trigger channel'.
Good luck,
Jan-Mathijs
-----Original Message-----
From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Jyrki Ahveninen
Sent: Friday, January 05, 2007 4:53 PM
To: FIELDTRIP at NIC.SURFNET.NL
Subject: [FIELDTRIP] trialfun_neuromag
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