<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>maybe this I miss your point but when I set the cfg. structure for the trigger values, I use the square brackets</div><div>e.g. </div><div><pre>cfg.trialdef.eventtype  = 'TRIGGER'; 
cfg.trialdef.eventvalue = [4106 4108 4110];</pre><div>Did you try this?</div><div>Good luck.</div><div><br></div><div>Julian</div><div><br></div><div><div>Am 08.03.2010 um 16:53 schrieb Henning Holle:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear list members,<br><br>I am trying to define trials for a dataset. When I look for the events contained in the file (like this)<br><br>cfg = [];<br>cfg.dataset             = 'jenna.cnt'<br>cfg.trialdef.eventtype = '?';<br>dummy                   = definetrial(cfg);<br><br>I get the following output.<br><br>Reading Event Table...<br>the following events were found in the datafile<br>event type: 'trigger' with event values: 1  11  22  33<br>no trials have been defined yet, see DEFINETRIAL for further help<br>found 202 events<br>created 0 trials<br><br><br>Now, when I want to define the trials for all 'standard' events (which have the eventvalue '11'),<br><br>% define trials<br>cfg = [];<br>cfg.dataset             = 'jenna.cnt'<br>cfg.trialdef.eventtype = 'trigger'<br>cfg.trialdef.eventvalue = { '11' };<br>cfg_standard          = definetrial(cfg);<br><br>I get the following error message.<br><br>??? Error using ==> cellstr at 34<br>Input must be a string.<br><br>Error in ==> cell.intersect at 44<br>    a = cellstr(a);<br><br>Error in ==> trialfun_general at 114<br>  elseif ~isempty(intersect(event(i).value, cfg.trialdef.eventvalue))<br><br>Error in ==> ft_definetrial at 110<br>    [trl, event] = feval(cfg.trialfun, cfg);<br><br>Error in ==> definetrial at 17<br>[varargout{1:nargout}] = funhandle(varargin{:});<br><br>How can I solve this problem? Am I doing something wrong? (I am using the most recent version of fieldtrip)<br><br>Cheers,<br><br>Henning<br><br>-- <br>*************************<br>Dr. Henning Holle,<br>Department of Psychology,<br>University of Sussex,<br>Falmer, Brighton,<br>BN1 9QH, U.K.<br>Tel. : +44 (0)1273 877240<br>Fax. : +44 (0)1273 678058<br><br>----------------------------------<br>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 <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/neuroimaging/fieldtrip">http://www.ru.nl/neuroimaging/fieldtrip</a>.<br></div></blockquote></div><br></div><br><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 13px; font-weight: bold; ">Dipl. Psych. Julian Keil</span></div><div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; "><br class="khtml-block-placeholder"></span></font></div><div><i>OBOB-Lab</i></div><div>University of Konstanz</div><div>Department of Psychology</div><div>P.O. Box D25</div><div>78457 Konstanz</div><div>Germany</div><div><br></div><div><b style="font-weight: bold; ">Tel</b>: ++49 - (0)7531 - 88 42 50</div><div><b style="font-weight: bold; ">Fax</b>: ++49 - (0)7531 - 88 28 91</div><div><b style="font-weight: bold; ">Email: <span class="Apple-style-span" style="font-weight: normal; "><a href="mailto:julian.keil@uni-konstanz.de">julian.keil@uni-konstanz.de</a></span></b></div><div><b style="font-weight: bold; ">Homepage</b>: <a href="http://www.uni-konstanz.de/obob">http://www.uni-konstanz.de/obob</a></div></div><div><br></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html><p>----------------------------------</p>
<p>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.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>