Section: String Functions
isspace functions returns a logical array that is 1
for characters in the argument string that are spaces, and
is a logical 0 for characters in the argument that are not
spaces. The syntax for its use is
x = isspace(s)
where s is a string. A blank character is considered
a space, newline, tab, carriage return, formfeed, and vertical
tab.
isspace:
--> isspace(' hello there world ')
ans =
<logical> - size: [1 20]
Columns 1 to 19
1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0
Columns 20 to 20
1