Removing row of matrix

2 views (last 30 days)
Day Hong Kim
Day Hong Kim on 21 Apr 2018
Answered: Walter Roberson on 21 Apr 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]

Accepted Answer

Walter Roberson
Walter Roberson on 21 Apr 2018
A(2:2:end,:) = [];

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!