isspace - Array elements that are space characters

Syntax

tf = isspace('str')

Description

tf = isspace('str') returns an array the same size as 'str' containing logical 1 (true) where the elements of str are ASCII white spaces and logical 0 (false) where they are not. White spaces in ASCII are space, newline, carriage return, tab, vertical tab, or formfeed characters.

Examples

isspace('  Find spa ces ')
  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, isstrprop, ischar, strings, isa, is*

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS