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
(真的
). For more information on testing empty strings, see测试空字符串和缺失值。有关字符串比较的信息,请参阅Compare Text。要在数组中测试缺少值,请使用
ismissing
function.