How to create pairwise comparison matrix for row matrix?
Mostrar comentarios más antiguos
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 comentarios
madhan ravi
el 31 de Oct. de 2018
Example of desired output?
RAJKUMAR SUBRAMANIAN
el 31 de Oct. de 2018
Respuestas (1)
Bruno Luong
el 31 de Oct. de 2018
Editada: Bruno Luong
el 31 de Oct. de 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 comentarios
RAJKUMAR SUBRAMANIAN
el 14 de Nov. de 2018
Bruno Luong
el 14 de Nov. de 2018
Please accept the answer
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!