k = isspace('str')
k = isspace('str')
returns 1s where the elements of str
are white spaces and 0s where they are not. White spaces are space, newline, carriage return, tab, vertical tab, or formfeed characters.
s = 'A B C '
isspace(s)
ans =
0 1 0 1 0 1
isletter
,isstr
(c) Copyright 1994 by The MathWorks, Inc.