<div>Dear all,</div>
<div> </div>
<div>I am a very beginner with fieldtrip. </div>
<div> </div>
<div>I have tried to run the tutorial a couple of weeks ago, and it worked smoothly. </div>
<div> </div>
<div>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"):</div>
<div> </div>
<div> </div>
<div>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);</div>
<div> </div>
<div><br clear="all">??? Attempt to reference field of non-structure array</div>
<div> </div>
<div>Error in ==> trialfun_general at 117<br>for i=find(strcmp(cfg.trialdef.eventtype, {event.type}))</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>This sounds really weird since it worked 2 weeks ago on the same machine and with the same version of Fieldtrip.</div>
<div> </div>
<div>Any advice would be very appreciated.</div>
<div> </div>
<div>Best wishes,</div>
<div> </div>
<div>Davide</div>