MATLAB: Extract Vector’s index from Matrix

matrixvector

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

Best Answer

ismember function might be helpful.