Documentation of standardize_NaN


Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)


Function Synopsis

y = standardize ( x ) 

Help text

 function y = standardize ( x ) 
 standardize a vector or a matrix (each column is normalized)

Cross-Reference Information

This function calls

Listing of function standardize_NaN

function y = standardize ( x ) 

nsz = size(x); ndim = length(nsz);
if ndim > 2;
  x = reshape(x, nsz(1), prod(nsz(2:ndim)));
end


[m,n]=size(x);
if(m==1) 
  m=n;
end
y = ( x - ones(m,1)*mean2(x) ) ./ ( ones(m,1)*std2(x) );

y = reshape(y, nsz);