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!