Borrar filtros
Borrar filtros

how to find matrix in a matrix?

2 visualizaciones (últimos 30 días)
eri
eri el 17 de Oct. de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by