help > Calculation of Graph Properties Error Message
Showing 1-11 of 11 posts
Display:
Results per page:
Mar 13, 2017  01:03 PM | Edward Su
Calculation of Graph Properties Error Message
Hi Dr. Spielberg,

Thank you for developing this tool!
I'm having some difficult at the Calculation of Graph Properties stage. After I "set output name" I hit the "Load" button on the GTG_calcproperties_GUI, a Finder window pops up with my directory. I selected a self-created connectivity matrices, which is a white matter tract strength map in dimension of p x p for p ROIs. After I've done this, and then I receive this error message:

Undefined function or variable 'out'.

Error in GTG_calcproperties_GUI>Load_config_pushbutton_Callback (line 622)
handles.out = out;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in GTG_calcproperties_GUI (line 126)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)GTG_calcproperties_GUI('Load_config_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Please let me know if you have any thoughts!

Thank you so much!
Edward
Mar 13, 2017  10:03 PM | Jeffrey Spielberg
RE: Calculation of Graph Properties Error Message
Hi Edward,

It sounds like you are hitting the "Load" button in the bottom left corner, correct?  That is for loading previously saved configurations not the matrices.  To load those, hit the "Select Matrix" button on in the top left.
Mar 14, 2017  02:03 AM | Edward Su
RE: Calculation of Graph Properties Error Message
Hi Dr. Spielberg,

Please find the figure of my GUI in attachment.
I can't find any button named "select matrix" on my GUI.
Or maybe I got the wrong GUI?

Please let me know if you have any thoughts!

Thank you so much!
Edward
Mar 14, 2017  03:03 AM | Edward Su
RE: Calculation of Graph Properties Error Message
Hi Dr. Spielberg,

Please find another figure of my GUI in attachment.
The "Dance_PR.mat" is my connectivity matrix, which I created by myself
After I select the connectivity matrix. Then I hit "start" button and there is a error message popup "Enter assortativity matrices".

Please let me know if you have any thoughts!

Thank you so much!
Edward
Mar 14, 2017  12:03 PM | Jeffrey Spielberg
RE: Calculation of Graph Properties Error Message
Sorry, yes you don't have that button, I was getting versions mixed up.  

I see the issue here.  The connectivity matrices should be a variable in the matlab workspace.  So, just load Dance_PR.mat into matlab and specify the name of that variable in the "Connectivity Matrices" field instead of the filename.
Mar 15, 2017  12:03 AM | Edward Su
RE: Calculation of Graph Properties Error Message
Hi Dr. Spielberg,

I did what you have told me and I hit "start" button on the bottom. The he parallel pool will run for about 5 second, and then I receive this error message:

Undefined function or variable 'mod_grps'.

Error in GTG_calcproperties_GUI>Start_pushbutton_Callback
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in GTG_calcproperties_GUI (line 126)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)GTG_calcproperties_GUI('Start_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

I have tried so many times and the error message keep coming up. Orz

Please let me know if you have any thoughts!

Thank you so much!

Edward
Mar 15, 2017  07:03 PM | Jeffrey Spielberg
RE: Calculation of Graph Properties Error Message
Yes, you've hit on a known bug in this version of the toolbox.  The attached script should fix the issue (just copy over the old file with this one).
Mar 15, 2017  10:03 PM | Edward Su
RE: Calculation of Graph Properties Error Message
Hi Dr. Spielberg,

Thank you for the new version of toolbox. I have done what you have told and I hit "start" button on the bottom. The he parallel pool will run for about 5 second, and then I receive another error message:

Reference to non-existent field 'glob_eff_neg'.

Error in GTG_calcproperties_GUI>Start_pushbutton_Callback (line 3607)
if calc_props_thrmat.glob_eff_neg==1
% If only global efficiency should be calculated
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in GTG_calcproperties_GUI (line 126)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)GTG_calcproperties_GUI('Start_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Is another bug

Please let me know if you have any thoughts!

Thank you so much!
Edward 
Mar 17, 2017  03:03 PM | Jeffrey Spielberg
RE: Calculation of Graph Properties Error Message
Yes, you caught another small bug (thanks!).  It's due to a typo, which has been fixed in the attached version.
Mar 20, 2017  02:03 PM | Edward Su
RE: Calculation of Graph Properties Error Message
Hi Dr. Spielberg,

Thank you for the fixed m-file. I have overwrote the "GTG_calcproperties_GUI.m" with new m-file  and I hit "start" button on the bottom. The he parallel pool will run for about 5 second, and then I receive an error message:

Undefined function or variable 'mod_grps'.

Error in GTG_calcproperties_GUI>Start_pushbutton_Callback
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in GTG_calcproperties_GUI (line 126)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)GTG_calcproperties_GUI('Start_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

It's the same error message have showed last time. 

Please let me know if you have any thoughts!

Thank you so much!
Edward
Mar 23, 2017  03:03 PM | Jeffrey Spielberg
RE: Calculation of Graph Properties Error Message
Ok, hopefully this version will solve the issue