strmatch
(Not recommended) Find possible matches for string
strmatch is not recommended. Use another function depending on your
goal. To determine which array elements begin with specified text, use startsWith or strncmp. To find the best match for
specified text, use validatestring. To find an exact match for
specified text, use matches.
Description
x = strmatch(
looks through the rows of the text array str, strarray)strarray to find elements
that begin with the text contained in str. If
strmatch does not find str in
strarray, then x is an empty matrix
([]). Any trailing whitespace characters in str
or strarray are ignored when matching. strmatch
is fastest when strarray is a character array.
Examples
Input Arguments
Version History
Introduced before R2006a