how to do 1d vector deletion?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Zoltán Csáti
am 14 Feb. 2015
% First, delete from index 20000 to 50000
v = v(1:19999);
% Delete the index containing the value 132
v = v(v~=132);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!