Finding common elements in an array (even if they are not in the same position)
조회 수: 2(최근 30일)
표시 이전 댓글
I have two vectors a and b. Both vectors may not be of the same length. I want to find the common elements between these vectors. For example, if the number 1 appears in both vectors a and b, then i should output 1 and all other common elements.
I am struggling to think of how to do this. Any insights? Thanks
댓글 수: 0
채택된 답변
추가 답변(0개)
참고 항목
범주
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!