isstrprop
isstrprop(str,category)返回与 str 相同大小逻辑数组/cell, 其中元素为对应 str 元素是否属于 category 的判断
category table:
| Category | Description |
|---|---|
alpha | Letters |
lower | Lowercase letters |
upper | Uppercase letters. |
alphanum | Letters or numeric digits |
digit | Numeric digits |
punct | Punctuation characters. |
graphic | Graphic characters |
print | Graphic characters + char(32) (blank space) |
wspace | Whitespace characters |
cntrl | Control characters (for example, char(0:20)) |
xdigit | Valid hexadecimal digits |
Graphic characters
isstrprop treats all Unicode characters as graphic characters, except for the following:
- Unassigned characters
- Whitespace characters
- The line separator
- The paragraph separator
- Control characters
- Private user-defined characters
- Surrogate characters