MATLAB: How to locate a string in Matlab, getting the index of the string

indexMATLABmatlab string index locatestring

I'm a newbie to Matlab and have a question about str locating:
A = ['abc','de','fghij','something','another'];
Then how can I get `3` if I use `strfind(A,'fghij')`?
Thanks.

Best Answer

A = {'abc','de','fghij','something','another'}
idx=find(ismember(A,'fghij'))