FUNCTION REFERENCE

isstrprop

Test characters for a category.

Test characters for a category.

Syntax

tf = isstrprop(str, category)

category is 'alpha', 'alphanum', 'cntrl', 'digit', 'graphic', 'lower',

'print', 'punct', 'wspace', 'upper' or 'xdigit'. A cell array gives a cell

array of logical arrays. Numbers count as character codes. 'digit' and

'xdigit' accept ASCII digits only. 'punct' is Unicode punctuation, so ASCII

symbols such as $ + < = > ^ | ~ are not punctuation.

Example

isstrprop('a1 B', 'digit')   % [false true false false]

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.