Skip to content

ischar

Test whether the input is a character array.

tf = ischar(A)

Returns true when A is a character array (a string or array of characters), false otherwise.

ischar('hello') % 1
ischar(42) % 0
  • isstrprop — Test whether characters belong to a named character category.
  • isletter — Test whether each character is alphabetic.
  • isspace — Test whether each character is whitespace.