error during final exporting of xls

Submitted by marcelofebo1 on

We modified the parcellation in GraphVar 2.02 and added in house rat brain atlas. Everything seems fine up until final stage of exporting. We think it might be callback of different atlas (human) but not sure. We are using Matlab 2017a. Here is the error message. Thank you for any help you can provide:


Index exceeds matrix dimensions.
Error in GraphVar_CalcExport_Callback (line 66)
                if(sum(size(Result{1}) > 1))
Error in gui_mainfcn (line 95)
Error in GraphVar (line 40)
    gui_mainfcn(gui_State, varargin{:});
Error in>@(hObject,eventdata)GraphVar('GraphVar_CalcExport_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.


Johann Kruschwitz

Tue, 10/29/2019 - 09:46

I think it has nothing to do with your atlas but rather with the graph measure you are trying to export (i.e., the dimensions of the result do not match the requirements of the export function). It could be that we have added some new measures that have a different output as the more regular metrics and did not adapt the export function accordingly. If the error occurs at the end of the calculations, GraphVar will have saved all results also in its current workspace under 'results/*number*/GraphVars/. Thus, you could retrieve everyting from this location and manually put this into your xls sheet (each colum should represent a subject in the mat files). What measure are you trying to export?