Removing row of matrix

1 visualización (últimos 30 días)
Day Hong Kim
Day Hong Kim el 21 de Abr. de 2018
Respondida: Walter Roberson el 21 de Abr. de 2018
If I have a matrix, A = [1,2;3,4;5,6;7,8] How can I delete even rows, so I can get A = [1,2;5,6]

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Abr. de 2018
A(2:2:end,:) = [];

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by