Delete element from a vector within a given range
古いコメントを表示
Hi everyone,
Assuming I have a Vector say A = [2 3 1 8 1 8 4 1 3 6 7 5 6 8 1], and I want to delete the first 7 elements that are less than two. Therefore having A = [2 3 8 8 4 1 3 6 7 5 6 8 1]. Can someone please explain to me how to do this in Matlab?
Thanks
1 件のコメント
David Fletcher
2018 年 4 月 6 日
Since your example matrix doesn't actually have seven elements less than two, I am wondering whether you actually mean the first 7 elements less than 2, or the elements less than 2 with an index less than seven?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!