<div dir="ltr">I am trying to visualise data from databrowser. But I end up with following error message.<br clear="all"><div><br></div><div>reading layout from file horizontal.lay</div><div>Attempted to access laysels(14); index out of</div><div>bounds because numel(laysels)=13.</div><div><br></div><div>Error in ft_databrowser>redraw_cb (line 1821)</div><div> laysel = laysels(i);</div><div><br></div><div>Error in ft_databrowser (line 725)</div><div>redraw_cb(h);</div><div><br></div><div>Error in main (line 29)</div><div>fg = ft_databrowser(cfg,data);</div><div><br></div><div><br></div><div>script:</div><div>
<p class="">cfg = [];</p>
<p class="">cfg.dataset = <span class="">'Thilina.edf'</span>;</p>
<p class="">cfg.trl = [4 10 0;</p>
<p class=""> 12 20 0; </p>
<p class=""> 18 20 0;</p>
<p class=""> 22 110 0];</p>
<p class="">cfg.continuous = <span class="">'yes'</span>;</p>
<p class=""><span class="">cfg.channel = {</span>'all'<span class="">, </span>'-COUNTER'<span class="">, </span>'-INTERPOLATED'<span class="">, </span>'-RAW_CQ'<span class="">, </span>'-GYROX'<span class="">, </span>'-GYROY'<span class="">, </span>'-MARKER'<span class="">, </span>'-SYNC'<span class="">, </span>'-TIME_STAMP_s'<span class="">, </span>'-TIME_STAMP_ms'<span class="">, </span>'-CQ_AF3'<span class="">, </span>'-CQ_F7'<span class="">, </span>'-CQ_F3'<span class="">, </span>'-CQ_FC5'<span class="">, </span>'-CQ_T7'<span class="">, </span>'-CQ_P7'<span class="">, </span>'-CQ_O1'<span class="">, </span>'-CQ_O2'<span class="">, </span>'-CQ_P8'<span class="">, </span>'-CQ_T8'<span class="">, </span>'-CQ_FC6'<span class="">, </span>'-CQ_F4'<span class="">, </span>'-CQ_F8'<span class="">, </span>'-CQ_AF4'<span class="">, </span>'-CQ_CMS'<span class="">, </span>'-CQ_DRL'<span class="">};</span></p>
<p class="">data = ft_preprocessing(cfg);</p>
<p class="">cfg.viewmode = <span class="">'horizontal'</span>;</p><p class="">fg = ft_databrowser(cfg,data);</p><p class=""><br></p><p class="">horizontal.lay file:</p><p class="">1<span class="" style="white-space:pre"> </span>-0.545830<span class="" style="white-space:pre"> </span>1.170536<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>AF3</p><p class="">2<span class="" style="white-space:pre"> </span>-0.659023<span class="" style="white-space:pre"> </span>0.813825<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>F3</p><p class="">3<span class="" style="white-space:pre"> </span>-1.299041<span class="" style="white-space:pre"> </span>0.943808<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>F7</p><p class="">4<span class="" style="white-space:pre"> </span>-1.173172<span class="" style="white-space:pre"> </span>0.450338<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>FC5</p><p class="">5<span class="" style="white-space:pre"> </span>-1.299041<span class="" style="white-space:pre"> </span>-0.943808<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>P7</p><p class="">6<span class="" style="white-space:pre"> </span>-1.605703<span class="" style="white-space:pre"> </span>-0.000000<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>T7</p><p class="">7<span class="" style="white-space:pre"> </span>-0.496189<span class="" style="white-space:pre"> </span>-1.527114<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>O1</p><p class="">8<span class="" style="white-space:pre"> </span>0.545830<span class="" style="white-space:pre"> </span>1.170536<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>AF4</p><p class="">9<span class="" style="white-space:pre"> </span>0.659023<span class="" style="white-space:pre"> </span>0.813825<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>F4</p><p class="">10<span class="" style="white-space:pre"> </span>1.299041<span class="" style="white-space:pre"> </span>0.943808<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>F8</p><p class="">11<span class="" style="white-space:pre"> </span>1.173172<span class="" style="white-space:pre"> </span>0.450338<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>FC6</p><p class="">12<span class="" style="white-space:pre"> </span>1.299041<span class="" style="white-space:pre"> </span>-0.943808<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>P8</p><p class="">13<span class="" style="white-space:pre"> </span>1.527114<span class="" style="white-space:pre"> </span>-0.496189<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>TP8</p><p class="">14<span class="" style="white-space:pre"> </span>0.496189<span class="" style="white-space:pre"> </span>-1.527114<span class="" style="white-space:pre"> </span>0.290000<span class="" style="white-space:pre"> </span>0.230000<span class="" style="white-space:pre"> </span>O2</p><p class="">Your support to get this error fixed is highly appreciated.</p><p class=""><br></p><p class=""><br></p><p class=""><br></p><p class=""><br></p></div>
</div>