How to normalize the values of matrix to make it greater than zero and less than one?
5 次查看(过去 30 天)
显示 更早的评论
hello,
ho to normalize the values of a matrix to make it greater than zero and less than one?
regards,
采纳的回答
Matt J
2018-10-23
编辑:Matt J
2018-10-23
B=(A-min(A(:)))/(max(A(:))-min(A(:))) ;
4 个评论
Walter Roberson
2018-10-23
delta = max(eps(A(:));
B=(A-min(A(:))+delta)/(max(A(:))-min(A(:))+delta) ;
更多回答(3 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!