SyntaxFix
Write A Post
Hire A Developer
Questions
Most shortest code:
strs = {'HA' 'KU' 'LA' 'MA' 'TATA'}; [~,ind]=ismember('KU', strs)
But it returns only first position in strs. If element not found then ind=0.
strs
ind=0