Learn R Programming

matlab (version 1.0.4.1)

isempty: MATLAB isempty function

Description

Determine if object is empty.

Usage

isempty(A)

Value

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

Arguments

A

object to evaluate

Author

P. Roebuck proebuck1701@gmail.com

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