delete null in matrix
21 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Azzi Abdelmalek
on 14 Dec 2013
Edited: Azzi Abdelmalek
on 14 Dec 2013
M=[ 0 0 0 ; 7.9286 10.1000 14.3714]
M=M(all(M,2),:)
3 Comments
More Answers (1)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!