isempty

Determines if x is an empty value.

Syntax

R = isempty(x)

Inputs

x
Any valid scalar | string | vector | matrix.
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | string | vector | matrix

Outputs

R
Boolean value true or false.

Examples

Simple scalar input:

R = isempty(5)
R = 0

Simple complex number input:

R = isempty(2-i)
R = 0

Simple empty number input:

R = isempty([])
R = 1