next up previous
Next: dspim.m: Display images Up: Matlab functions Previous: sirload16.m: Reads 16 bit

normalize.m: Normalizes a matrix

function result=normalize( matrix )
% Normalizes the matrix, so that all the values will be
% included in the interval [0 1]

Nor = matrix - min( matrix(:) );
result = Nor / max( Nor(:) );

end;



Adrian Perrig
Wed Jun 5 22:28:55 MET DST 1996