How to create pairwise comparison matrix from input matrix?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
madhan ravi
am 31 Okt. 2018
Bearbeitet: madhan ravi
am 31 Okt. 2018
Use the same method which I gave as an answer
Antworten (2)
KSSV
am 20 Sep. 2018
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 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!