lrds > logmatrix.m

logmatrix

PURPOSE ^

logmatrix - takes logm for each trial.

SYNOPSIS ^

function xcv = logmatrix(xcv)

DESCRIPTION ^

 logmatrix - takes logm for each trial.

 Syntax:
  xcv = logmatrix(xcv)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xcv = logmatrix(xcv)
0002 % logmatrix - takes logm for each trial.
0003 %
0004 % Syntax:
0005 %  xcv = logmatrix(xcv)
0006   
0007 [C1,C2,n] = size(xcv);
0008 
0009 if C1~=C2
0010   error('Input is not square.')
0011 end
0012 
0013 for ii=1:n
0014   xcv(:,:,ii) = logm(xcv(:,:,ii));
0015 end

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