FUNCTION REFERENCE

isstruct

Test whether a value is a struct.

Test whether a value is a struct.

Syntax

isstruct(X)

Returns a logical scalar. Scalar, array and empty structs all return true; other classes return false.

Example

isstruct(struct('a',1))   % true

Differences from MATLAB: Logical display differs.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.