deleting element in one dimensional array

3 visualizaciones (últimos 30 días)
Umair Altaf
Umair Altaf el 6 de Mzo. de 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??

Respuestas (1)

Matt J
Matt J el 6 de Mzo. de 2013
Editada: Matt J el 6 de Mzo. de 2013
A=A(1:2:end);

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by