How to normalize the values of matrix to make it greater than zero and less than one?
4 ビュー (過去 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 件)
madhan ravi
2018 年 10 月 23 日
編集済み: madhan ravi
2018 年 10 月 23 日
Try :
Np = normalize(A,'norm',1) % A your matrix
参考
カテゴリ
Help Center および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!