isstructDetermine if an given input is a structure array
isstruct(A)A should be an array.A is a structure array, and logical 0 if otherwise.A is empty.% Structure scalar with no fields
isstruct(struct)
% Empty structure array
isstruct(struct([]))
% Structure with one field
isstruct(struct('field', 1))
ans =
1
ans =
1
ans =
1