Main Content
isempty
Determine whether array is empty
Syntax
Description
Examples
Input Arguments
Tips
To determine whether a string array has empty strings (string elements with zero characters), use the
==
operator. For example, ifstr
is a string containing zero characters, thenstr == ""
returns logical1
(true
). For more information on testing empty strings, see Test for Empty Strings and Missing Values. For information on string comparison, see Compare Text.To test for missing values in an array, use the
ismissing
function.
Extended Capabilities
Version History
Introduced before R2006a