Hi guys,
first of all thanks for the huge work you do with brainstorm, it's amazing and this platform helped me so much.
I am writting here because I encountered recently a problem when plotting topography:
I wrote a script to plot an EEG topographical map:
hFig = view_surface_data(SurfaceFile, OverlayFile, 'EEG', 'NewFigure');
panel_time('SetCurrentTime', j)
set(hFig,'Position',[1 482 613 568])
set(hFig,'Color',[1 1 1])
panel_surface('SetSurfaceColor', hFig, 1, [0 0 0.5])
bst_colormaps('SetMaxCustom','eeg', [], round(min(Data.F(:)),1), round(max(Data.F(:)),1))
figure_3d('ViewSensors', hFig, 1, 1);
figure_3d('SetStandardView', hFig, 'left');
It went well until recently. Indeed, Matlab throw me an error message:
**Error using horzcat**
**Dimensions of arrays being concatenated are not consistent.**
**Error in panel_surface (line 40)**
**eval(macro_method);**
**Error in view_surface_data (line 298)**
**isOk = panel_surface('SetSurfaceData', hFig, iTess, OverlayType, OverlayFile, isStat);**
**Error in tree_callbacks>@(h,ev)view_surface_data(sSubject.Surface(sSubject.iScalp).FileName,filenameRelative,AllMod{iMod}) (line 1392)**
** gui_component('MenuItem', jMenuModality, [], 'Display on scalp', IconLoader.ICON_SURFACE_SCALP, [],**
** @(h,ev)view_surface_data(sSubject.Surface(sSubject.iScalp).FileName, filenameRelative, AllMod{iMod}));**
Since then, I can't plot any topographical map (EEG, SEEG), even from previous studies with which it went totally well. I cannot do anything now.
I restarted Brainstorm (up to date), Matlab (2020b), my computer (Windows 10, i9-10900X CPU @ 3.70GHz, 64Gb RAM, Nvidia RTX4000) etc. but nothing.
Do you have any idea on how to fix it?
Thanks!