Compare the rows of an array with another one's array

조회 수: 6 (최근 30일)
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2019년 12월 12일
댓글: Nikolas Spiliopoulos 2019년 12월 12일
Hi all,
I have an Array A with dimensions [3500 x 5]
And a second array B with dimensions [13x5]
How can I check every row of array A to see if it is the same with any row of B? (practically crosscheck every row of array A with ALL rows of array B)!
is there any easy way to do it?
thanks a lot
Nikolas

채택된 답변

Ridwan Alam
Ridwan Alam 2019년 12월 12일
Lia = ismember(A,B,'rows')

추가 답변 (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