help > RE: List of connectivity strengths
Feb 14, 2018  12:02 AM | Andrew Zalesky
RE: List of connectivity strengths
Hi Genevieve,

This can be achieved with a for-loop.

Here is how to do it. Note that I have not tested this but it should work:

global nbs; N=nbs.STATS.N;

ind_upper=find(triu(ones(N,N),1));
cross_ref=zeros(N,N);
cross_ref(ind_upper)=1:length(ind_upper);
cross_ref=cross_ref+cross_ref';

[i,j]=find(nbs.NBS.con_mat{1});
for n=1:length(i)
     ind=cross_ref(i(n),j(n));
     fprintf('%0.3f\n',nbs.GLM.y(:,ind));
end


Originally posted by gmcphilemy:
Hi Andrew,

Is there a way to implement the 'List of Connectivity Strengths for Single Connection' to get the list of connectivity strengths for all connections in a significant network rather than just a single connection? I tried to build a for loop for this but I can't get it working. 

Thank you for the help!

Genevieve

Threaded View

TitleAuthorDate
Christopher Whelan Jun 19, 2014
Andrew Zalesky Jun 20, 2014
gmcphilemy Feb 13, 2018
RE: List of connectivity strengths
Andrew Zalesky Feb 14, 2018
Christopher Whelan Jun 20, 2014