bbci / bbci_public

MATLAB toolbox for Brain-Computer Interfacing (BCI)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bbci_calibrate()

okbalefthanded opened this issue · comments

While running a bbci_calibrate() demo (the script provided by the 2014-BBCI WinterSchool intro) on MATLAB2012a using the data set "VPkg_08_08_07\calibration_motorimageryVPkg", I got a list of errors beginning at plotutil_channel1D function:

Error using set
ColorOrder must contain at least one color

Error in plotutil_channel1D (line 298)
set(H.ax, axesStyle{:});

Error in plot_channel (line 36)
H= plotutil_channel1D(epo, clab, opt{:});

Error in grid_plot (line 326)
cchan = plot_channel(epo, mnt.clab{ic}, opt_channel, opt_plot{:}, ...

Error in bbci_calibrate_csp (line 311)
h= grid_plot(spec, mnt, opt_grid_spec);

Error in bbci_calibrate (line 49)
[bbci, data]= BC.fcn(bbci, data);

I could not reproduce the error. I copied the script from the PDF of the BBCI Winterschool 2014 and used the newest version of this toolbox, and it worked without a problem. If you still have this issue, please send me the code how you define the bbci structure before calling

bbci_calibrate(bbci);
Also it could be helpful, if you use
dbstop if error
to check the value of the variable axesStyle. With
dbup
you can also inspect the variables opt (in the scope of plot_channel), opt_plot (in grid_plot) and opt_grid_spec (in bbci_calibrate_csp) and report it to us. Thank you.

Since the error could not be reproduced, I close this issue here. If you still have problems, please open a new issue and report more details as requested in my previous comment. Thank you.