[FieldTrip] Ft_databrowser layout error

Senaka Amarakeerthi senakahks at gmail.com
Sun Jan 3 04:38:49 CET 2016


I am trying to visualise data from databrowser. But I end up  with
following error message.

reading layout from file horizontal.lay
Attempted to access laysels(14); index out of
bounds because numel(laysels)=13.

Error in ft_databrowser>redraw_cb (line 1821)
    laysel = laysels(i);

Error in ft_databrowser (line 725)
redraw_cb(h);

Error in main (line 29)
fg = ft_databrowser(cfg,data);


script:

cfg = [];

cfg.dataset = 'Thilina.edf';

cfg.trl = [4 10 0;

    12 20 0;

    18 20 0;

    22 110 0];

cfg.continuous = 'yes';

cfg.channel    = {'all', '-COUNTER', '-INTERPOLATED', '-RAW_CQ', '-GYROX',
'-GYROY', '-MARKER', '-SYNC', '-TIME_STAMP_s', '-TIME_STAMP_ms', '-CQ_AF3',
'-CQ_F7', '-CQ_F3', '-CQ_FC5', '-CQ_T7', '-CQ_P7', '-CQ_O1', '-CQ_O2',
'-CQ_P8', '-CQ_T8', '-CQ_FC6', '-CQ_F4', '-CQ_F8', '-CQ_AF4', '-CQ_CMS',
'-CQ_DRL'};

data           = ft_preprocessing(cfg);

cfg.viewmode = 'horizontal';

fg = ft_databrowser(cfg,data);


horizontal.lay file:

1 -0.545830 1.170536 0.290000 0.230000 AF3

2 -0.659023 0.813825 0.290000 0.230000 F3

3 -1.299041 0.943808 0.290000 0.230000 F7

4 -1.173172 0.450338 0.290000 0.230000 FC5

5 -1.299041 -0.943808 0.290000 0.230000 P7

6 -1.605703 -0.000000 0.290000 0.230000 T7

7 -0.496189 -1.527114 0.290000 0.230000 O1

8 0.545830 1.170536 0.290000 0.230000 AF4

9 0.659023 0.813825 0.290000 0.230000 F4

10 1.299041 0.943808 0.290000 0.230000 F8

11 1.173172 0.450338 0.290000 0.230000 FC6

12 1.299041 -0.943808 0.290000 0.230000 P8

13 1.527114 -0.496189 0.290000 0.230000 TP8

14 0.496189 -1.527114 0.290000 0.230000 O2

Your support to get this error fixed is highly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160103/f15bfaf0/attachment-0001.html>


More information about the fieldtrip mailing list