Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Function help for standardizeMatrix function
  • Loading branch information
snikumbh committed Jul 28, 2017
1 parent 4d48120 commit 34bf9c0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion standardizeMatrix.m
@@ -1,6 +1,19 @@
function stdM = standardizeMatrix(M)

%return a standardized version of matrix M where all entries are in range[0,1].
% 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));
Expand Down

0 comments on commit 34bf9c0

Please sign in to comment.