extract Vector's index from Matrix
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (2)
Walter Roberson
il 14 Nov 2011
Much more directly:
setdiff(V, M(:,1))
Fatma Gargouri
il 14 Nov 2011
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!