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测试空字符串和缺失值. For information on string comparison, seeCompare Text.To test for missing values in an array, use the
ismissing
function.