Rescales X.
[f]=rescale(X,xnew,xold)
matrix (m*n) of data values, m rows represents m data points, n columns data dimensions.;
current boundaries. xold(1,:) old low boundary for all dimensions n; xold(2,:) old high boundary for all dimensions n.If not given, takes min(X) as low and max(X) as high boundary for every dimensions n.
new boundaries. xnew(1,:) new low boundary for all dimensions n; xnew(2,:) new high boundary for all dimensions n.
Rescales X, where xold(1,:)<X<xold(2,:), to f, where xnew(1,:)<f<xnew(2,:).