code to normalize( between 0 and 1) a matrix 65*11811. The normalization process should be for each row not column**. In other words, the program should seek for the largest value in each row and divide all the elements in that row by it.

4 次查看(过去 30 天)
hello everyone... i need a code to normalize( between 0 and 1) a matrix 65*11811. The normalization process should be for each row not column**. In other words, the program should seek for the largest value in each row and divide all the elements in that row by it. can anybody help plzz

回答(1 个)

Birdman
Birdman 2018-4-5
Consider you have these variables in A matrix:
res=A./max(A,[],2)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by