delete null in matrix
21 次查看(过去 30 天)
显示 更早的评论
I have matrix M=[ 0 0 0 7.9286 10.1000 14.3714]
I want to delete null in matrix.
I want matrix M=[7.9286 10.1000 14.3714]
Thanks
0 个评论
采纳的回答
Azzi Abdelmalek
2013-12-14
编辑:Azzi Abdelmalek
2013-12-14
M=[ 0 0 0 ; 7.9286 10.1000 14.3714]
M=M(all(M,2),:)
3 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!