<div dir="ltr">Dear FieldTrippers,<div><br></div><div style>When I tried to identify time-points of interest on ft_databrowser with cfg.selectmode='markpeakevent' or 'marktroughevent', I got the error message below:</div>
<div style><br></div><div style><div><i>Attempt to reference field of non-structure array.</i></div><div><i>Error in ft_databrowser>select_range_cb (line 960)</i></div><div><i>    if any(intersect(begsel:endsel, [opt.event.sample]))</i></div>
<div><i>Error in ft_select_range>evalCallback (line 325)</i></div><div><i>    feval(funhandle, funargs{:}, val, cmenulab);</i></div><div><i>Error in ft_select_range (line 159)</i></div><div><i>          evalCallback(callback, userData.range); </i></div>
<div><i>Error using waitfor</i></div><div><i>Error while evaluating figure WindowButtonDownFcn</i></div><div><i><br></i></div><div style>Here's the script:</div><div style><br></div><div style><div>cfg.viewmode = 'vertical';</div>
<div>cfg.blocksize  = 2;</div><div>cfg.continuous = 'yes';</div><div>cfg.channel = 'EEG RMFP_06-REF';<span class="" style="white-space:pre">    </span></div><div>cfg.selectmode = 'marktroughevent';</div>
<div>cfg.trl = 'all';</div><div>cfg = ft_databrowser(cfg, data);</div></div><div><br></div><div style>The error never happens on the 'markaritifact' mode.</div><div style>Can you help me find the problem?<br>
</div><div style><br></div><div style>Thanks a lot,</div><div style>Yoshi</div></div></div>