How to remove incomplete elements in a vector? using loops
古いコメントを表示
I have an experiment consisting of id numbers (x.y), where x = experiment number and y = part number.
If l have a vector, let's say:
v(id) = [1.3, 2.2, 2.3, 2.1, 1.1]
and want to remove the incomplete ones, namely: in experiment 1 because part 2 is missing
How can l do that and get the output: ans = 2.2, 2.3, 2.1 (it should remain in the same order as the original)
2 件のコメント
Walter Roberson
2016 年 8 月 6 日
Why are you not removing the 2.* series as well, since part 42 of that is missing?
Sandie Nhatien Vu
2016 年 8 月 6 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!