Open lkrisst opened 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.
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.