Using ismember on vector with strings
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Muazma Ali
el 3 de Oct. de 2019
Comentada: Muazma Ali
el 4 de Oct. de 2019
Hi,
I am wonderinh whether I can write something like this:
If any(ismember(result , [" nafor", "kform", "acet"]))
0 comentarios
Respuesta aceptada
meghannmarie
el 3 de Oct. de 2019
Editada: meghannmarie
el 3 de Oct. de 2019
if you are trying to match string to string, try this:
if any(contains([' nafor','kform','acet'],result))
5 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!