Test character string properties. For example,
isstrprop ("abc123", "isalpha") [1, 1, 1, 0, 0, 0]If str is a cell array,
isstrpopis applied recursively to each element of the cell array.Numeric arrays are converted to character strings.
The second argument pred may be one of
"alpha"- True for characters that are alphabetic
"alnum""alphanum"- True for characters that are alphabetic or digits.
"ascii"- True for characters that are in the range of ASCII encoding.
"cntrl"- True for control characters.
"digit"- True for decimal digits.
"graph""graphic"- True for printing characters except space.
"lower"- True for lower-case letters.
"print"- True for printing characters including space.
"punct"- True for printing characters except space or letter or digit.
"space""wspace"- True for whitespace characters (space, formfeed, newline, carriage return, tab, vertical tab).
"upper"- True for upper-case letters.
"xdigit"- True for hexadecimal digits.