Normalizing to the maximum value
24 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a 48X128 matrix. I want to normalize each row to the maximum value in that row. What function will achieve this?
0 Commenti
Risposte (1)
Sulaymon Eshkabilov
il 3 Feb 2023
Modificato: Sulaymon Eshkabilov
il 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 Commento
Star Strider
il 3 Feb 2023
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!