フィルターのクリア

Comparing Contents of Two Matrices

1 回表示 (過去 30 日間)
Rightia Rollmann
Rightia Rollmann 2016 年 8 月 12 日
回答済み: Guillaume 2016 年 8 月 12 日
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 ];

採用された回答

Guillaume
Guillaume 2016 年 8 月 12 日
all(ismember(A, B))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by