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
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,:)

madhan ravi
madhan ravi 2018-10-31
Result= yourmatrix'./yourmatrix

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by