ucdavis / erplab

ERPLAB Toolbox is a free, open-source Matlab package for analyzing ERP data. It is tightly integrated with EEGLAB Toolbox, extending EEGLAB’s capabilities to provide robust, industrial-strength tools for ERP processing, visualization, and analysis. A graphical user interface makes it easy for beginners to learn, and Matlab scripting provides enormous power for intermediate and advanced users.
http://erpinfo.org/erplab
271 stars 73 forks source link

Contra Ipsi Bin Ops Gui Error #125

Open lkrisst opened 4 years ago

lkrisst commented 4 years ago

Clearing the ERPLAB working memory sorts the issue.

Error message: Cell contents reference from a non-cell array object.

Error in contraipsiGUI>contraipsiGUI_OpeningFcn (line 152) set(handles.edit_binshortlabel, 'String', sprintf('%s ',shortbinlabels{:}));

Error in gui_mainfcn (line 220) feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in contraipsiGUI (line 43) [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

Error in binoperGUI>pushbutton_contraipsi_assistant_Callback (line 790) formcell = contraipsiGUI(chanlocs, bindescr);

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in binoperGUI (line 111) gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)binoperGUI('pushbutton_contraipsi_assistant_Callback',hObject,eventdata,guidata(hObject)) Error using uiwait (line 81) Error while evaluating UIControl Callback.

papaior commented 4 years ago

Related issue: When creating a contra-ipsi bin script(?), ALL bins must have a contra/ipsi component to them (e.g. bin1@Rch). If some of the new bins have simple equations that don't refer to channels (e.g. nbin12 = bin 12), then ALL erp data is zeroed out (even for the bins that are correctly specified). It should throw an error instead.

I think this is because the contra-ipsi format changes the channel labels, but equations that have the normal contra-ipsi format expect the previous labels.