How to create pairwise comparison matrix from input matrix?
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a matrix 50*48 with all integer values. I want to create a pairwise comparison matrix for the input matrix. Please help me with this.
Thank you in advance
6 个评论
回答(2 个)
KSSV
2018-9-20
May be you are looking for something like this:
A = rand(10,2) ; % Matrix data
B = A(7,:) ; % To compare with A
% Compare A with B, get index
idx = ismember(A,B,'rows') ;
iwant = A(idx,:)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!