Dividing each row in a 48X5120 int32 with the maximum value in the row

조회 수: 1 (최근 30일)
Anwesh Saha
Anwesh Saha 2023년 1월 23일
편집: Matt J 2023년 1월 23일
I have a 48X5120 int32, and I want to divide each element in a row with the maximum value in the row, for all the 48 rows. How do I accomplish this?

채택된 답변

Matt J
Matt J 2023년 1월 23일
편집: Matt J 2023년 1월 23일
A=double(A);
result = A./max(A,[],2)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by