how to do 1d vector deletion?
조회 수: 1 (최근 30일)
이전 댓글 표시
i created an array as a=<1*5000>(i.e. 1 column and 50000 rows). i need to delete the elements of position having value 132. and i need to delete the elements starting from address 20000 to 50000. so, ans. me as soon as any one can...
댓글 수: 0
답변 (1개)
Zoltán Csáti
2015년 2월 14일
% First, delete from index 20000 to 50000
v = v(1:19999);
% Delete the index containing the value 132
v = v(v~=132);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!