isspace

Purpose

True for space character.

Synopsis

k = isspace('str')

Description

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.

Examples

s = 'A B C '
isspace(s)
          
ans =
    0    1    0    1    0    1

See Also

isletter, isstr

(c) Copyright 1994 by The MathWorks, Inc.