Azzera filtri
Azzera filtri

deleting element in one dimensional array

4 visualizzazioni (ultimi 30 giorni)
Umair Altaf
Umair Altaf il 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??

Risposte (1)

Matt J
Matt J il 6 Mar 2013
Modificato: Matt J il 6 Mar 2013
A=A(1:2:end);

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by