필터 지우기
필터 지우기

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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by