Function written to match MATLAB's isempty function
Arguments
- ...
arguments to pass to the function. Typically a matrix.
Value
Logical. True if the passed object has any dimension that is zero.
See also
Other MATLAB:
cell()
,
diag_matlab()
,
feval()
,
fileparts()
,
ones()
,
rand()
,
randn()
,
size()
,
tic()
,
toc()
,
zeros()
Examples
isempty(zeros(2,3))
#> [1] FALSE
isempty(zeros(2,0))
#> [1] TRUE
isempty(c(1,2,3))
#> [1] FALSE