Channel Editor and brainstorm window not closing

Hi all,

I’ve been having this issue where I open the brainstorm from matlab and try editing the channel file, and it doesn’t close after the edit, forever loading saying “Closing editor…”. Once that happens, I can’t close the brainstorm window either, and I get this error in matlab and I have to force exit via task manager. Has anyone encountered this before?

If anyone knows how to fix this, please let me know!

Below is the error message I get in the matlab command window when I try closing the brainstorm window

Undefined function or variable 'toDouble'.

Error in opaque/double (line 84)`
   dbl(i) = toDouble(cel{i});
Error in panel_channel_editor>GetTableData (line 549)
         if ~isempty(jLoc) && ~all(isnan(double(jLoc)))
Error in panel_channel_editor>PanelHidingCallback (line 216)
         FinalChannel = GetTableData(ctrl.jTableChannel);
Error in panel_channel_editor (line 39)
         eval(macro_method);
Error in gui_hide (line 72)
         isAccepted = panel_channel_editor('PanelHidingCallback');
Error in bst_memory>UnloadAll (line 3298)
         gui_hide('ChannelEditor');
Error in bst_memory (line 73)
         eval(macro_method);
Error in bst_exit (line 49)
         isCancel = bst_memory('UnloadAll', 'Forced');
Error in gui_brainstorm>CreateWindow/closeWindow_Callback (line 526)
         if (~bst_exit())

Can you share a copy of the channel file that is causing the trouble?

The path for that file can be obtained with right-click on the the channel file, then File > Copy file path to clipboard