Proposal which gives a results which looks correct; Can you return the original vector from the normalised result?
% https://se.mathworks.com/matlabcentral/answers/154075-how-to-scale-normalize-values-in-a-matrix-to-be-between-1-and-1
a = -1 + 2.*(a - min(a))./(max(a) - min(a));
Other proposed normalizations but they do not work, giving wrong range
a = normalize(a); a = a/norm(a);
I am processing MIT-BIH arrythmia database signals.
MATLAB: 2016b OS: Debian 8.5
Best Answer