I would like to remove zeros from my matrix
1 回表示 (過去 30 日間)
古いコメントを表示
a=[0 0 0; 0 0 0; 1 2 3; 4 5 6]
3 件のコメント
Rik
2021 年 10 月 27 日
@Aladdin, this is an answer to what might be a homework question. Please consider either moving your comment to the answer section (by deleting this and reposting it) or deleting your comment.
回答 (1 件)
Walter Roberson
2021 年 10 月 27 日
a = [0 0 0; 0 0 0; 1 2 3; 4 5 6]
b = rmmissing(standardizeMissing(a, 0))
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!