How to solve this problem?
조회 수: 1 (최근 30일)
이전 댓글 표시
normalize the data X by subtracting the minimum value and dividing by the range over each dimension?
댓글 수: 0
답변 (2개)
KALYAN ACHARJYA
2020년 12월 14일
This?
data=rand(1,10); %Exampe data
min_val=min(data);
max_val=max(data);
norm_data=(data-min_val)/(max_val-min_val)
Ameer Hamza
2020년 12월 14일
You can use rescale(): https://www.mathworks.com/help/matlab/ref/rescale.html to get the values in a range you want. For example,
X_new = rescale(X, 0, 1)
참고 항목
카테고리
Help Center 및 File Exchange에서 Error Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!