isstrprop
Test whether characters belong to a named character category.
Syntax
Section titled “Syntax”tf = isstrprop(str, category)Description
Section titled “Description”Returns a logical array the same size as str indicating which positions hold characters in the named category. Recognized categories include 'alpha', 'digit', 'alphanum', 'lower', 'upper', 'punct', 'wspace', 'cntrl', 'print', 'xdigit'.
Example
Section titled “Example”isstrprop('Hi 5!', 'digit') % [0 0 0 1 0]