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

1 view (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Tags

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!