필터 지우기
필터 지우기

get common rows from 2 matrices

조회 수: 9 (최근 30일)
Elysi Cochin
Elysi Cochin 2017년 11월 16일
댓글: Hulya Kadioglu 2020년 10월 14일
i have two matrices of different sizes,
A = [450,37;477,38;464,39;450,40;493,40]
B = [461,37;477,38;450,40;483,39]
i wanted to get a new matrix C, which contains the common rows in A and B
C = [477,38;450,40]

채택된 답변

Andrei Bobrov
Andrei Bobrov 2017년 11월 16일
C = intersect(A,B,'rows')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by