lrds > covariance.m

covariance

PURPOSE ^

covariance - calculate the covariance between channels for each sample

SYNOPSIS ^

function xcv = covariance(xepo);

DESCRIPTION ^

 covariance - calculate the covariance between channels for each sample

 xcv = proc_covariance(xepo)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Sat 26-Apr-2008 15:48:23 by m2html © 2003