delete matrix row with certain value

 Respuesta aceptada

the cyclist
the cyclist el 11 de Nov. de 2014
M = magic(3);
M(any(M==2,2),:) = []

Más respuestas (1)

Adam
Adam el 11 de Nov. de 2014
A = [2 3 4 5; 6 7 8 9; 2 1 1 1; 3 3 3 3];
A( any(A == 2, 2 ),: ) = [];

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Nov. de 2014

Comentada:

el 11 de Nov. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by