How to create pairwise comparison matrix for row matrix?
Ältere Kommentare anzeigen
hai, example matrix :
a=[3 3 2 3 5 3 5 3 4];
How to create a pairwise comparison matrix for the above row matrix?
Thanks in advance
2 Kommentare
madhan ravi
am 31 Okt. 2018
Example of desired output?
RAJKUMAR SUBRAMANIAN
am 31 Okt. 2018
Antworten (1)
Bruno Luong
am 31 Okt. 2018
Bearbeitet: Bruno Luong
am 31 Okt. 2018
Replace == with whatever comparison operator that is suitable for you
C = a == a.'
Edit, seem like you want (this is called division, not comparison)
C = a.' ./ a
2 Kommentare
RAJKUMAR SUBRAMANIAN
am 14 Nov. 2018
Bruno Luong
am 14 Nov. 2018
Please accept the answer
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!