matmultcv - multiplies matrix to each covarianced trial. Syntax: xcv = matmultcv(xcv, W)
0001 function xcv = matmultcv(xcv, W) 0002 % matmultcv - multiplies matrix to each covarianced trial. 0003 % 0004 % Syntax: 0005 % xcv = matmultcv(xcv, W) 0006 [C1,C2,n] = size(xcv); 0007 0008 if C1~=C2 0009 error('Input is not square.'); 0010 end 0011 0012 for i= 1:n 0013 Vi= W'*xcv(:,:,i)*W; 0014 xcv(:,:,i)= (Vi+Vi')/2; 0015 end