help > RE: error in nbs
Jan 28, 2025  12:01 AM | Andrew Zalesky
RE: error in nbs

Hi Miktab,


I suspect that you have a function called compnents.m in your working directory, which is not the components.m used by the NBS


Make sure that you have added the NBS and all of its subdirectories to your working path: 


addpath(genpath('NBS_folder'))


In short, Matlab seems to be calling the wrong version of components.m 


Andrew


if you type edit components, does the function provide two output?


 


Originally posted by mikatb:



Hi Dr. Zalesky


I am using NBS to compare connectivity differences in 2 groups. I get this error when I run nbs. Please tell me what the problem is. 


Error using components
Too many output arguments.


Error in NBSstats (line 132)
     [a,sz]=components(adj);


Error in NBSrun (line 313)
    catch; [nbs.NBS.n,nbs.NBS.con_mat,nbs.NBS.pval]=NBSstats(nbs.STATS,-1,nbs.GLM); end


Error in NBS>get_ui (line 174)
    NBSrun(UI,S);
 
Error while evaluating UIControl Callback.


 


 


Thank you for your help!



 

Threaded View

TitleAuthorDate
mikatb Jan 27, 2025
RE: error in nbs
Andrew Zalesky Jan 28, 2025
mikatb Jan 28, 2025