find same elements between two sequences

조회 수: 1 (최근 30일)
Jay Hanuman
Jay Hanuman 2016년 12월 30일
답변: Azzi Abdelmalek 2016년 12월 30일
a=[2 5 4 6 6 7 9 8 4 5 61 2 56 41]
b=[1 9 7 3 2 4 5 1 6 4 78 1 12 56 14 27 46 1 3 2 4]
how to find same elements in between two sequences. in above 2,4,5,6,7,9,56 are same elements.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 12월 30일
a=[2 5 4 6 6 7 9 8 4 5 61 2 56 41]
b=[1 9 7 3 2 4 5 1 6 4 78 1 12 56 14 27 46 1 3 2 4]
c=intersect(a,b)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by