MATLAB: Filtering values in a matrix

filter matrix values

for example I have a matrix
A=1 2
3 0
0 0
4 5
0 6
I need to filter out only those rows having no zeros(in this case [4 5]). thank you for your help………

Best Answer

A( all(A,2), : ) = [];
If "filter out" means to remove.