MATLAB Function Reference | ![]() ![]() |
Detect elements that are ASCII white spaces
Syntax
Description
tf = isspace('
returns an array the same size as str
')
'str
' containing logical true (1
) where the elements of str
are ASCII white spaces and logical false (0
) where they are not. White spaces in ASCII are space, newline, carriage return, tab, vertical tab, or formfeed characters.
Examples
isspace(' Find spa ces ') ans = Columns 1 through 13 1 1 0 0 0 0 1 0 0 0 1 0 0 Columns 14 through 15 0 1
See Also
isletter
, ischar
, char
, isa
, is*
![]() | issorted | issparse | ![]() |