Removing row of matrix

6 vues (au cours des 30 derniers jours)
Day Hong Kim
Day Hong Kim le 21 Avr 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]

Réponse acceptée

Walter Roberson
Walter Roberson le 21 Avr 2018
A(2:2:end,:) = [];

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by