how to find the position in a string array

 Respuesta aceptada

Walter Roberson
Walter Roberson el 6 de Abr. de 2014

2 votos

Read the documentation in ismember()

2 comentarios

thanks, I got it.
[a,b]=ismember(str,attributes)
b
I'd prefer this instead:
index = find(strcmp(attributes, str))

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Abr. de 2014

Comentada:

Jan
el 6 de Abr. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by