isstrprop
isstrprop(X, c) returns true if X is a string of the category specified in c.
Available categories:
Available categories:
Category | Description |
alpha | alphabetic (letters) |
alphanum | alphabetic or digits |
digit | decimal digits (0-9) |
lower | lowercase letters |
punct | punctuation characters |
wspace | whitespace characters |
upper | uppercase letters |
xdigit | hexadecimal digits (a-fA-F0-9) |
Examples
>> A = isstrprop('A1b2C3', 'alpha')# 1 0 1 0 1 0
>> A = isstrprop('A1b2C3', 'digit')# 0 1 0 1 0 1