Azzera filtri
Azzera filtri

Comparing Contents of Two Matrices

1 visualizzazione (ultimi 30 giorni)
Rightia Rollmann
Rightia Rollmann il 12 Ago 2016
Risposto: Guillaume il 12 Ago 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 ];

Risposta accettata

Guillaume
Guillaume il 12 Ago 2016
all(ismember(A, B))

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by