Intersection of two vector of string/char type
조회 수: 10 (최근 30일)
이전 댓글 표시
Hi.What is an analogue function for "intersect" when the vectors have string entries? For example A(1)='EDP PL',A(2)='VOD LN'. B(1)='VOD LN',B(2)='BNPP FP'.
If I have tow numerical vectors v1 and v2 I can find the intersection and the positions by simply [ig,ind1,ind2]=intersect(v1,v2).
How do I deal with this kind of situation ?
댓글 수: 3
Rik
2020년 11월 29일
Your syntax is a bit confusing. Did you mean to use single quotes, or did you mean to use a string data type instead?
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!