isstruct
Test whether the input is a structure.
Syntax
Section titled “Syntax”TF = isstruct(A)Description
Section titled “Description”Returns true if A is a structure (scalar struct or struct array), false otherwise.
Example
Section titled “Example”isstruct(struct('a', 1)) % 1