Skip to content

isstruct

Test whether the input is a structure.

TF = isstruct(A)

Returns true if A is a structure (scalar struct or struct array), false otherwise.

isstruct(struct('a', 1)) % 1
  • struct — Create a structure with named fields.
  • isfield — Test whether a structure contains a named field.