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 Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by