how to find the position in a string array

 채택된 답변

Walter Roberson
Walter Roberson 2014년 4월 6일

2 개 추천

Read the documentation in ismember()

댓글 수: 2

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

질문:

2014년 4월 6일

댓글:

Jan
2014년 4월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by