MATLAB Answers

0

find same elements between two sequences

Asked by Jay Hanuman on 30 Dec 2016
Latest activity Answered by Azzi Abdelmalek
on 30 Dec 2016
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.

  0 Comments

Sign in to comment.

1 Answer

Answer by Azzi Abdelmalek
on 30 Dec 2016

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)

  0 Comments

Sign in to comment.