Normalizing to the maximum value
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a 48X128 matrix. I want to normalize each row to the maximum value in that row. What function will achieve this?
0 Kommentare
Antworten (1)
Sulaymon Eshkabilov
am 3 Feb. 2023
Bearbeitet: Sulaymon Eshkabilov
am 3 Feb. 2023
Use normalize() to normalize each row or use simple matrix operation to obtain the values of matrix elements to be between [0 .. 1]:
A = randi(10, 7 , 5) % Data
An = normalize(A,2) % Normalize each row
ANor = A./max(A(1:end,:)) % Normalize wi.r.t. max value of each row
1 Kommentar
Star Strider
am 3 Feb. 2023
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!