Vectorization dividing row by their maximum.
Show older comments
*Dear All,
Let say I have M = magic(10); Now I want to divide each element of the matrix by the maximum element row wise.
For example, I can get max in rows by
m = max(M, [],2);
Now this is column matrix having same number of rows as M. Now I want to divide each row of M by the row value of m .*
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!