problem with definetrials
Julian Keil
julian.keil at GMAIL.COM
Mon Mar 8 22:12:43 CET 2010
Hi,
maybe this I miss your point but when I set the cfg. structure for the trigger values, I use the square brackets
e.g.
cfg.trialdef.eventtype = 'TRIGGER';
cfg.trialdef.eventvalue = [4106 4108 4110];
Did you try this?
Good luck.
Julian
Am 08.03.2010 um 16:53 schrieb Henning Holle:
> Dear list members,
>
> I am trying to define trials for a dataset. When I look for the events contained in the file (like this)
>
> cfg = [];
> cfg.dataset = 'jenna.cnt'
> cfg.trialdef.eventtype = '?';
> dummy = definetrial(cfg);
>
> I get the following output.
>
> Reading Event Table...
> the following events were found in the datafile
> event type: 'trigger' with event values: 1 11 22 33
> no trials have been defined yet, see DEFINETRIAL for further help
> found 202 events
> created 0 trials
>
>
> Now, when I want to define the trials for all 'standard' events (which have the eventvalue '11'),
>
> % define trials
> cfg = [];
> cfg.dataset = 'jenna.cnt'
> cfg.trialdef.eventtype = 'trigger'
> cfg.trialdef.eventvalue = { '11' };
> cfg_standard = definetrial(cfg);
>
> I get the following error message.
>
> ??? Error using ==> cellstr at 34
> Input must be a string.
>
> Error in ==> cell.intersect at 44
> a = cellstr(a);
>
> Error in ==> trialfun_general at 114
> elseif ~isempty(intersect(event(i).value, cfg.trialdef.eventvalue))
>
> Error in ==> ft_definetrial at 110
> [trl, event] = feval(cfg.trialfun, cfg);
>
> Error in ==> definetrial at 17
> [varargout{1:nargout}] = funhandle(varargin{:});
>
> How can I solve this problem? Am I doing something wrong? (I am using the most recent version of fieldtrip)
>
> Cheers,
>
> Henning
>
> --
> *************************
> Dr. Henning Holle,
> Department of Psychology,
> University of Sussex,
> Falmer, Brighton,
> BN1 9QH, U.K.
> Tel. : +44 (0)1273 877240
> Fax. : +44 (0)1273 678058
>
> ----------------------------------
> 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/neuroimaging/fieldtrip.
Dipl. Psych. Julian Keil
OBOB-Lab
University of Konstanz
Department of Psychology
P.O. Box D25
78457 Konstanz
Germany
Tel: ++49 - (0)7531 - 88 42 50
Fax: ++49 - (0)7531 - 88 28 91
Email: julian.keil at uni-konstanz.de
Homepage: http://www.uni-konstanz.de/obob
----------------------------------
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/neuroimaging/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20100308/bdea0781/attachment-0001.html>
More information about the fieldtrip
mailing list