Learn R Programming

PopED (version 0.7.0)

isempty: Function written to match MATLAB's isempty function

Description

Function written to match MATLAB's isempty function

Usage

isempty(...)

Value

Logical. True if the passed object has any dimension that is zero.

Arguments

...

arguments to pass to the function. Typically a matrix.

See Also

Other MATLAB: cell(), diag_matlab(), feval(), fileparts(), ones(), rand(), randn(), size(), tic(), toc(), zeros()

Examples

Run this code

isempty(zeros(2,3))

isempty(zeros(2,0))

isempty(c(1,2,3))

Run the code above in your browser using DataLab