filtering values in a matrix
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.........
2 comentarios
Respuesta aceptada
Walter Roberson
el 11 de Mzo. de 2013
A( all(A,2), : ) = [];
If "filter out" means to remove.
3 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!