<div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm using ft_databrowser to inspect sleep data and I want to visually mark different events (spindles, k-complexes, artifacts, so forth) and asign them to different cfg.artfctdef.xxx.artifact substructures. Could somebody help me to mark different artifact trial types using the cfg.selectfeature option? Please find below the code and data to reproduce the error I got. I'm using the very last fieldtrip version on windows with matlab 7.9b.<br></div><div><br></div><div>Thanks beforehand,</div><div><br></div><div>Diego</div><div><br></div><div><br></div><div><br></div><div>data = [];</div><div>data.label = {'Fpz';'F7';'F3';'Fz';'F4';'F8';'C3';'Cz';'C4';'P3';'Pz';'P4';'O1';'Oz';'O2'};</div><div>data.fsample = 250;</div><div>data.trial{1} = rand(size(data.label,1),data.fsample*30);</div><div>data.time{1} = (1:data.fsample*30)./data.fsample;</div><div><br></div><div>cfg = [];</div><div>cfg.length = 2;</div><div>cfg.overlap = 0;</div><div>trl = ft_redefinetrial(cfg,data);</div><div><br></div><div><br></div><div>cfg = [];</div><div>cfg.channel = 'all';</div><div>cfg.blocksize = 2;</div><div>cfg.selectfeature = {'a';'b'};</div><div>cfg.viewmode = 'vertical';</div><div>events = ft_databrowser(cfg,trl);</div><div><br></div><div><br></div><div><div>the input is raw data with 15 channels and 15 trials</div><div>detected 0 a artifacts</div><div>detected 0 b artifacts</div><div>??? Error using ==> plus</div><div>Matrix dimensions must agree.</div><div><br></div><div>Error in ==> ft_databrowser at 745</div><div> hsel = [1 2 3] + (opt.ftsel-1) .*3;</div><div> </div><div>??? Reference to non-existent field 'trlvis'.</div><div><br></div><div>Error in ==> ft_databrowser>redraw_cb at 1639</div><div>begsample = opt.trlvis(opt.trlop, 1);</div><div><br></div><div>Error in ==> ft_databrowser>winresize_cb at 2250</div><div>redraw_cb(h,eventdata);</div><div> </div><div>??? Error while evaluating figure ResizeFcn</div></div><div><br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>