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

1 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

Matt J
Matt J am 23 Jan. 2023
Bearbeitet: Matt J am 23 Jan. 2023
A=double(A);
result = A./max(A,[],2)

Weitere Antworten (0)

Tags

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by