Filter löschen
Filter löschen

Comparing Contents of Two Matrices

1 Ansicht (letzte 30 Tage)
Rightia Rollmann
Rightia Rollmann am 12 Aug. 2016
Beantwortet: Guillaume am 12 Aug. 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 ];

Akzeptierte Antwort

Guillaume
Guillaume am 12 Aug. 2016
all(ismember(A, B))

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by