Intersection of two vector of string/char type
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mihai Milea
am 29 Nov. 2020
Kommentiert: Mihai Milea
am 30 Nov. 2020
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 Kommentare
Rik
am 29 Nov. 2020
Your syntax is a bit confusing. Did you mean to use single quotes, or did you mean to use a string data type instead?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!