extract Vector's index from Matrix
古いコメントを表示
Hello,
I have a matrix M size(M)=n*2
and a Vector V size(V)=n*1
in the fist colomn of M we find some indexes of V I want to extract the indexes of V which are not used in M.
is that possible?
thank you
採用された回答
その他の回答 (2 件)
Walter Roberson
2011 年 11 月 14 日
Much more directly:
setdiff(V, M(:,1))
Fatma Gargouri
2011 年 11 月 14 日
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!