Global Index (short | long) | Local contents | Local Index (short | long)
y = standardize ( x )
function y = standardize ( x ) standardize a vector or a matrix (each column is normalized)
This function calls | |
---|---|
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);