How can I extract from a vector the element which are in odd position? And in even position?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Arianna Serpi
am 28 Apr. 2017
Kommentiert: CH V NAGA GANESH NASIKA
am 11 Aug. 2021
I have the vector A=[2 7 19 3 14 65 32 ... N] , and I want to create another vector B which have only the element that are in odd position in vector A. In other world i want to create the vector B=[2 19 14 32 ...]. The same for the elements in even position.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!