I guess the following code could do the trick:
strs = {'HA' 'KU' 'LA' 'MA' 'TATA'}
ind=find(ismember(strs,'KU'))
This returns
ans =
2
More Related Contents:
- Create variables with names from strings
- Why does my string not match when reading user input from stdin?
- What’s the difference of strings within single or double quotes in groovy?
- Difference between text and varchar (character varying)
- Extract substring in Bash
- Find string between two substrings [duplicate]
- How can I split multiple joined words?
- How to efficiently concatenate strings in go
- Multiline strings in VB.NET
- Case insensitive comparison of strings in shell script
- How can I accumulate cells of different lengths into a matrix in MATLAB?
- pass character strings to ggplot2 within a function
- swift How to remove optional String Character
- String compare in Perl with “eq” vs “==” [duplicate]
- How to generate all the permutations of a multiset?
- Extract part of a string using bash/cut/split
- Insert a character at a specific location in a string
- Convert R vector to string vector of 1 element [duplicate]
- How do you write multiline strings in Go?
- Algorithm to find articles with similar text
- Scala String vs java.lang.String – type inference
- Is there a function to split a string in Oracle PL/SQL?
- Line continuation of strings in Fortran
- How to parse string to date in xslt 2.0
- Convert slice of string to slice of pointer to string
- The History Behind the Definition of a ‘String’ [closed]
- How can I replace newline characters using JSP and JSTL?
- Remove all line breaks at the beginning of a string in Swift
- Can I convert a string to enum without macros in Rust?
- What’s wrong with Groovy multi-line String?