How can I extract from a vector the element which are in odd position? And in even position?
8 ビュー (過去 30 日間)
古いコメントを表示
Arianna Serpi
2017 年 4 月 28 日
コメント済み: CH V NAGA GANESH NASIKA
2021 年 8 月 11 日
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 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!