Skip to content

isletter

Test whether each character is alphabetic.

tf = isletter(A)

Returns a logical array the same size as A, with true at positions where the character is alphabetic (A–Z, a–z, plus locale-specific letters).

isletter('Hi 5!') % [1 1 0 0 0]
  • isspace — Test whether each character is whitespace.
  • ischar — Test whether the input is a character array.
  • isstrprop — Test whether characters belong to a named character category.