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

1 vue (au cours des 30 derniers jours)
Anwesh Saha
Anwesh Saha le 23 Jan 2023
Modifié(e) : Matt J le 23 Jan 2023
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?

Réponse acceptée

Matt J
Matt J le 23 Jan 2023
Modifié(e) : Matt J le 23 Jan 2023
A=double(A);
result = A./max(A,[],2)

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by