>> a = [1,2,3;4,5,6;0,7,8;0,0,0;0,0,0]
a =
1 2 3
4 5 6
0 7 8
0 0 0
0 0 0
>> b = a(any(a,2),:)
b =
1 2 3
4 5 6
0 7 8
>> b = a(all(a,2),:)
b =
1 2 3
4 5 6
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment