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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Matt J
Matt J il 23 Gen 2023
Modificato: Matt J il 23 Gen 2023
A=double(A);
result = A./max(A,[],2)

Più risposte (0)

Tag

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by