How to normalize data which contain positive and negative numbers into 0 and 1? you can refer sample of my data below. I have tried but am getting an error which says data dimension must agree. Any suggestion, please. Thank you!
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Adnan Ibrahim
am 4 Sep. 2015
Bearbeitet: Walter Roberson
am 5 Sep. 2015
Datatraning = 100.*randn(300,1552)
minVal = min(Datatraning);
maxVal = max(Datatraning);
norm_data = (Datatraning - minVal) / ( maxVal - minVal )
Datatraining=[-51.6266980068282 260.373726514691 -1040.96015167892 255 -52.6288579705138 95.7235349174854
-49.8245562897936 298.367268515596 -900.490111536352 255 -49.9703056795758 108.101521100263
-36.2057603415223 398.270463317273 -749.608432372270 255 -49.5514320195152 118.634907748186
-34.2981982381135 435.407482297911 -38.4773520065891 255 -39.5337029802548 176.756214679240]
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 4 Sep. 2015
minVal = min(Datatraning(:));
maxVal = max(Datatraning(:));
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!