isblank.m

Version 1.1.0.0 (1.15 KB) by janez
Determines if the argument string consists only of blanks.
385 Downloads
Updated 9 Sep 2010

View License

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 .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers
Version Published Release Notes
1.1.0.0

added two examples of use.

1.0.0.0