isstrprop

Matlab Functions List


  • isstrprop(str,category) 返回与 str 相同大小逻辑数组/cell, 其中元素为对应 str 元素是否属于 category 的判断

category table:

CategoryDescription
alphaLetters
lowerLowercase letters
upperUppercase letters.
alphanumLetters or numeric digits
digitNumeric digits
punctPunctuation characters.
graphicGraphic characters
printGraphic characters + char(32) (blank space)
wspaceWhitespace characters
cntrlControl characters (for example, char(0:20))
xdigitValid 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