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))
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!