How to normalize the values of matrix to make it greater than zero and less than one?
조회 수: 9 (최근 30일)
이전 댓글 표시
hello,
ho to normalize the values of a matrix to make it greater than zero and less than one?
regards,
채택된 답변
Matt J
2018년 10월 23일
편집: Matt J
2018년 10월 23일
B=(A-min(A(:)))/(max(A(:))-min(A(:))) ;
댓글 수: 4
Walter Roberson
2018년 10월 23일
delta = max(eps(A(:));
B=(A-min(A(:))+delta)/(max(A(:))-min(A(:))+delta) ;
추가 답변 (3개)
madhan ravi
2018년 10월 23일
편집: madhan ravi
2018년 10월 23일
Try :
Np = normalize(A,'norm',1) % A your matrix
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!