Learn R Programming

matlab (version 1.0.2)

isempty: MATLAB isempty function

Description

Determine if object is empty.

Usage

isempty(A)

Arguments

A
object to evaluate

Value

Returns TRUE if x is an empty object; otherwise, FALSE.

Details

An empty object has at least one dimension of size zero.

Examples

Run this code
isempty(1:3)  # FALSE
isempty(array(NA, c(2, 0, 2)))	# TRUE

Run the code above in your browser using DataLab