Navigation

Operators and Keywords

Function List:

C++ API

: isnull (x)

Return true if x is a special null matrix, string, or single quoted string.

Indexed assignment with such a value on the right-hand side should delete array elements. This function should be used when overloading indexed assignment for user-defined classes instead of isempty, to distinguish the cases:

A(I) = []

This should delete elements if I is nonempty.

X = []; A(I) = X

This should give an error if I is nonempty.

See also: isempty, isindex.

Package: octave