deleting element in one dimensional array

3 views (last 30 days)
Umair Altaf
Umair Altaf on 6 Mar 2013
hi i have an one dimensional array of n elements and i want to delete only even elements in the array , how can i do this??

Answers (1)

Matt J
Matt J on 6 Mar 2013
Edited: Matt J on 6 Mar 2013
A=A(1:2:end);

Categories

Find more on Resizing and Reshaping Matrices 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!