Definetrial

Nicola Neumann nicola.neumann at UNI-TUEBINGEN.DE
Fri Feb 20 10:44:58 CET 2009


Dear all,

Still trying to define trials, I am stuck at the following point:

cfg                         = [];
cfg.dataset                 = 'Subject01.ds';
cfg.trialdef.eventtype      = 'backpanel trigger';
cfg.trialdef.eventvalue     = 3;
cfg.trialdef.prestim        = 1;
cfg.trialdef.poststim       = 2;

cfg = definetrial(cfg);

readCTFds: Data set error : size of meg4 file(s)
		         0 bytes (from dir command)
		 179071200 bytes (from res4 file)

??? Attempt to reference field of non-structure array.

Error in ==> trialfun_general at 126
for i=find(strcmp(cfg.trialdef.eventtype, {event.type}))

Error in ==> definetrial at 205
     [trl, event] = feval(cfg.trialfun, cfg);


Since the skript is from the tutorial and seems to work at everybody
else's, it must be some stupid kind of mistake. But which?

Thanks for your help.
Nicola

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.



More information about the fieldtrip mailing list