Using ismember on vector with strings
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am wonderinh whether I can write something like this:
If any(ismember(result , [" nafor", "kform", "acet"]))
0 commentaires
Réponse acceptée
meghannmarie
le 3 Oct 2019
Modifié(e) : meghannmarie
le 3 Oct 2019
if you are trying to match string to string, try this:
if any(contains([' nafor','kform','acet'],result))
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!