How to normalize well data between [-1,1]?
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Image Analyst
2016년 10월 23일
0 개 추천
Simply save your original array if you need it later.
If you need it in other functions and it's out of scope, see THE FAQ to learn how to get it IN scope in the functions you need it.
카테고리
도움말 센터 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!