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

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Matt J
Matt J el 23 de En. de 2023
Editada: Matt J el 23 de En. de 2023
A=double(A);
result = A./max(A,[],2)

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by