isblank.m
Version 1.1.0.0 (1.15 KB) by
janez
Determines if the argument string consists only of blanks.
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 LinuxCategories
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
