Using ismember on vector with strings
6 views (last 30 days)
Show older comments
Hi,
I am wonderinh whether I can write something like this:
If any(ismember(result , [" nafor", "kform", "acet"]))
0 Comments
Accepted Answer
meghannmarie
on 3 Oct 2019
Edited: meghannmarie
on 3 Oct 2019
if you are trying to match string to string, try this:
if any(contains([' nafor','kform','acet'],result))
More Answers (0)
See Also
Categories
Find more on Characters and Strings 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!