search for rows of a matrix within bigger matrix (without for loop)
Afficher commentaires plus anciens
A=[1 6 ;5 4 ;1 5 ;6 9 ;2 1;9 4;7 7]; B=[1 6 ;6 9 ;7 7];
I would like to search for rows of a matrix B within A. the result gives me the indices of matched rows [1 4 7] It works with me with for loop.However, i am trying to find another way to do it without for loop,any ideas please?
Thank you in advance
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!