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 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!