How to normalize the values of matrix to make it greater than zero and less than one?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sarah A
am 23 Okt. 2018
Kommentiert: Walter Roberson
am 23 Okt. 2018
hello,
ho to normalize the values of a matrix to make it greater than zero and less than one?
regards,
2 Kommentare
Akzeptierte Antwort
Matt J
am 23 Okt. 2018
Bearbeitet: Matt J
am 23 Okt. 2018
B=(A-min(A(:)))/(max(A(:))-min(A(:))) ;
4 Kommentare
Walter Roberson
am 23 Okt. 2018
delta = max(eps(A(:));
B=(A-min(A(:))+delta)/(max(A(:))-min(A(:))+delta) ;
Weitere Antworten (3)
madhan ravi
am 23 Okt. 2018
Bearbeitet: madhan ravi
am 23 Okt. 2018
Try :
Np = normalize(A,'norm',1) % A your matrix
1 Kommentar
Siehe auch
Kategorien
Mehr zu Logical 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!