A function that calculates how many entries' value and location are the same between two matrices
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
I would like some guidance on how I can create a function that calculates how many entries' value and location are the same between two matrices.
For example
If I have A = [2 8 3; 4 8 9; 2 8 9] and B = [1 8 4; 3 8 6; 2 8 7]
How can I create a function that displays that the number of matching entries are 4? (in the example, it would be the 8's along the 2nd column and the 2 on (3,1); they have the same value and location)
edit: correction made
Respuestas (2)
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!