Normalizing to the maximum value
조회 수: 21 (최근 30일)
이전 댓글 표시
I have a 48X128 matrix. I want to normalize each row to the maximum value in that row. What function will achieve this?
댓글 수: 0
답변 (1개)
Sulaymon Eshkabilov
2023년 2월 3일
편집: Sulaymon Eshkabilov
2023년 2월 3일
Use normalize() to normalize each row or use simple matrix operation to obtain the values of matrix elements to be between [0 .. 1]:
A = randi(10, 7 , 5) % Data
An = normalize(A,2) % Normalize each row
ANor = A./max(A(1:end,:)) % Normalize wi.r.t. max value of each row
댓글 수: 1
Star Strider
2023년 2월 3일
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!