covariance - calculate the covariance between channels for each sample xcv = proc_covariance(xepo)
0001 function xcv = covariance(xepo); 0002 % covariance - calculate the covariance between channels for each sample 0003 % 0004 % xcv = proc_covariance(xepo) 0005 % 0006 0007 [T,C,n]=size(xepo); 0008 0009 xcv = zeros(C,C,n); 0010 for i=1:n 0011 xcv(:,:,i) = cov(xepo(:,:,i)); 0012 end