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!