function y=map01(x);
%MAP01.m--maps data on to the interval [0 1]
%
%y=map01(x);
%
%Maps the data in x on to the interval [0,1]. 
%

mn=min(x(:));
mx=max(x(:));

y=(x-mn)/(mx-mn);
