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 日

2 投票

C = intersect(A,B,'rows')

1 件のコメント

Hulya Kadioglu
Hulya Kadioglu 2020 年 10 月 14 日
Thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Operators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by