Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

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*

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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