isstrprop

  • isstrprop(str,category) returns a logical array (or cell) the same size as str, indicating whether each element of str belongs to 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