フィルターのクリア

How can I select rows in an array based on the values in the first row of another array?

1 回表示 (過去 30 日間)
Hi suppose I have a column of values like :
How do I select every other row that are not displayed in the rows above in another new array. Example: I will want all other row 1,2,4,5..... excluding row 3, 39,51,15,28,65 and 56.
Please help, Thank you!

採用された回答

Stephen23
Stephen23 2020 年 2 月 4 日
編集済み: Stephen23 2020 年 2 月 4 日
idx = setdiff(1:size(yourarray,1),yourvector)
out = yourarray(idx,:)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by