Find missing elements of a vector
13 ビュー (過去 30 日間)
古いコメントを表示
Nikolas Spiliopoulos
2019 年 12 月 10 日
回答済み: JESUS DAVID ARIZA ROYETH
2019 年 12 月 10 日
Hi all,
I have a vector =1:1:80;
I have a vector with these numbers=[ 1 3 5 12 34 44 55 62 63 68 69 70 72 75 79];
How can I get the missing elements of the initial vector in anothrer vector?
the other vector will be = [2 4 6 7 8 9 10 11 13 etc.]
thanks a lot
Nikolas
0 件のコメント
採用された回答
JESUS DAVID ARIZA ROYETH
2019 年 12 月 10 日
vector =1:1:80;
numbers=[ 1 3 5 12 34 44 55 62 63 68 69 70 72 75 79];
another = setdiff(vector,numbers)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!