How can I remove zero values from the followning label matrix?.
2 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Hikaru
2014 年 9 月 22 日
If your matrix is A, then
A(A==0) = []
will remove the zeros. But it will change the matrix into a vector.
If you want to keep the matrix in the same shape, maybe
A(A==0) = NaN
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!