how to find the position in a string array
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Shown
el 6 de Abr. de 2014
Comentada: Jan
el 6 de Abr. de 2014
attributes={'aaaa','bbbb','cccc','dddd' };
str='cccc';
how to find position 3 ?
0 comentarios
Respuesta aceptada
Walter Roberson
el 6 de Abr. de 2014
Read the documentation in ismember()
2 comentarios
Jan
el 6 de Abr. de 2014
I'd prefer this instead:
index = find(strcmp(attributes, str))
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB 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!