Clear Filters
Clear Filters

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.

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

Answers (1)

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

Categories

Find more on Creating and Concatenating Matrices 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!