Borrar filtros
Borrar filtros

Comparing Contents of Two Matrices

1 visualización (últimos 30 días)
Rightia Rollmann
Rightia Rollmann el 12 de Ag. de 2016
Respondida: Guillaume el 12 de Ag. de 2016
How to determine if all elements of A are present in B, in the simplest way?
A = [ 1 2 3 ];
B = [ 1 2 3 4 5 6 7 8 9 10 ];

Respuesta aceptada

Guillaume
Guillaume el 12 de Ag. de 2016
all(ismember(A, B))

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by