how to find the position in a string array

 Risposta accettata

Walter Roberson
Walter Roberson il 6 Apr 2014
Read the documentation in ismember()

2 Commenti

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by