Home > fmri > fsl > identify_stable.m

identify_stable

PURPOSE ^

sc = identify_stable(corr_data);

SYNOPSIS ^

function sc = identify_stable(cdata)

DESCRIPTION ^

 sc = identify_stable(corr_data);

 Identifies paths of correlations through the correlation matrices in cdata

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function sc = identify_stable(cdata)
0002 % sc = identify_stable(corr_data);
0003 %
0004 % Identifies paths of correlations through the correlation matrices in cdata
0005 %
0006 
0007 % 10/19/05 Petr Janata - extracted from earlier script
0008 
0009 nsess = size(cdata,1);
0010 
0011 for isess = 1:nsess
0012   tmp = sparse(1);
0013   for jsess = 1:nsess
0014     sess1 = mod(isess+jsess-2,nsess)+1;
0015     sess2 = mod(sess1,nsess)+1;
0016     tmp = tmp*cdata{sess1,sess2};
0017   end
0018   sc{isess} = diag(tmp);
0019 end % for isess=

Generated on Sat 24-Aug-2019 04:00:39 by m2html © 2003