%% Scale to Unit Interval
% Scale the entries of a vector to the interval [0,1].

A = 1:5;
B = rescale(A)

% Copyright 2012 The MathWorks, Inc.