function y = to01(x) % y = (x - min(x))./(max(x) - min(x)); % % maps values in the segment (minval, maxval) to the values in the segment % (0,1) by linear mapping. % % Example % x = randn(1,20); % y = to01(x); % % Note % Type 'doc to01' in the Conmmand Window and enjoy the help! % Do not write help and comments in Russian! Maltab does'not support it. % y = (x - min(x))./(max(x) - min(x)); return