Skip to content

isspace

Test whether each character is whitespace.

tf = isspace(A)

Returns a logical array the same size as A, with true at positions occupied by whitespace (space, tab, newline, carriage return, form feed, vertical tab).

isspace('a b\tc') % [0 1 0 1 0]
  • isletter — Test whether each character is alphabetic.
  • ischar — Test whether the input is a character array.
  • isstrprop — Test whether characters belong to a named character category.