how to find the position in a string array

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 6 Apr. 2014

2 Stimmen

Read the documentation in ismember()

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 6 Apr. 2014

Kommentiert:

Jan
am 6 Apr. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by