deleting element in one dimensional array

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??

답변 (1개)

Matt J
Matt J 2013년 3월 6일
편집: Matt J 2013년 3월 6일

1 개 추천

A=A(1:2:end);

태그

질문:

2013년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by