Effacer les filtres
Effacer les filtres

how to find matrix in a matrix?

2 vues (au cours des 30 derniers jours)
eri
eri le 17 Oct 2012
i have matrix a and b. matrix b is created from matrix a components(rows in this case). now i want to find out from which row of matrix a did matrix b created?
for example:
a=[4 5 7;5 8 9;6 3 1;9 8 5;7 6 5]
b=[4 5 7;6 3 1;9 8 5]
answer:
1;3;4

Réponse acceptée

Matt J
Matt J le 17 Oct 2012
Use the command ismember(...,'rows')

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by