deleting element in one dimensional array

7 Ansichten (letzte 30 Tage)
Umair Altaf
Umair Altaf am 6 Mär. 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??

Antworten (1)

Matt J
Matt J am 6 Mär. 2013
Bearbeitet: Matt J am 6 Mär. 2013
A=A(1:2:end);

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by