isblank.m

Determines if the argument string consists only of blanks.

You are now following this Submission

Function determines whether the string str consists only of blank characters. For strings of blank characters function returns logical 1. For empty strings function returns logical 0. For non-character arguments function returns a type mismatch error.

Examples:
>> isblank(' ')
ans =
1
>> isblank(' foo ')
ans =
0

Cite As

janez (2026). isblank.m (https://www.mathworks.com/matlabcentral/fileexchange/28659-isblank-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

added two examples of use.

1.0.0.0