lrds > matmultcv.m

matmultcv

PURPOSE ^

matmultcv - multiplies matrix to each covarianced trial.

SYNOPSIS ^

function xcv = matmultcv(xcv, W)

DESCRIPTION ^

 matmultcv - multiplies matrix to each covarianced trial.

 Syntax:
  xcv = matmultcv(xcv, W)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

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