<div>Dear Jan-Mathijs<br></div>
<div> </div>
<div>This is the funny part. I run it (and worked) on the 201105053 version two weeks ago. Yesterday it did not work on the same version. So, I have downloaded the most recent version 20110516, but it is still not working.</div>

<div> </div>
<div>I do not really know what to do with it.</div>
<div> </div>
<div>Thanks for your kind help,</div>
<div> </div>
<div>Davide </div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Wed, May 18, 2011 at 11:02 AM, jan-mathijs schoffelen <span dir="ltr"><<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Dear Davide,<br><br>I am not sure whether you are using the same fieldtrip version. There has been a glitch recently with the trialfun_general, but this should be fixed by now. Could you update to a superrecent version of fieldtrip and try again?<br>
<br>Thanks,<br><br>Jan-Mathijs<br><br>PS: I cannot reproduce your error so I expect it to go away if you update. 
<div>
<div></div>
<div class="h5"><br><br>On May 18, 2011, at 10:51 AM, Davide Rivolta wrote:<br><br></div></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">Dear all,<br><br>I am a very beginner with fieldtrip.<br><br>I have tried to run the tutorial a couple of weeks ago, and it worked smoothly.<br><br>Yesterday I have tried again, but surprisngly I got anerror message, as soon as I started the tutorial (the first step entitled: "reading and processing the interesting trials"):<br>
<br><br>cfg                                = [];<br>cfg.dataset                    = 'Subject01.ds';<br>cfg.trialdef.eventtype      = 'backpanel trigger';<br>cfg.trialdef.eventvalue     = 3; % the value of the stimulus trigger for fully incongruent (FIC).<br>
cfg.trialdef.prestim         = 1; % in seconds<br>cfg.trialdef.poststim       = 2; % in seconds<br><br>cfg = ft_definetrial(cfg);<br><br><br>??? Attempt to reference field of non-structure array<br><br>Error in ==> trialfun_general at 117<br>
for i=find(strcmp(cfg.trialdef.eventtype, {event.type}))<br><br><br><br><br>This sounds really weird since it worked 2 weeks ago on the same machine and with the same version of Fieldtrip.<br><br>Any advice would be very appreciated.<br>
<br>Best wishes,<br><br>Davide<br></div></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote><br>Dr. J.M. (Jan-Mathijs) Schoffelen<br>Donders Institute for Brain, Cognition and Behaviour,<br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands<br><a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a><br>
Telephone: 0031-24-3614793<br><br>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Davide Rivolta, PhD<br><br>