Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
function stdM = standardizeMatrix(M)
% STANDARDIZEMATRIX
% Return a standardized version of matrix M where all entries are in range[0,1].
%
% INPUT PARAMS
% Param M (matrix)
% Input matrix that is to be standardized
%
% OUTPUT PARAMS
% Param stdM (matrix)
% Output matrix
%
% ADDITIONAL NOTES
%
% Author: snikumbh@mpi-inf.mpg.de
stdM = zeros(size(M));
mins = repmat(min(M,[],2), 1,size(M,2));
maxs = repmat(max(M,[],2), 1,size(M,2));
stdM = (M - mins)./(maxs - mins);
end