<< isstring Types module isuint16 >>

isstruct


Return true if variable var is a structure.


Syntax


res = isstruct(var)

Input argument


var

a variable

Output argument


res

a logical: true or false

Description


isstruct returns a logical 1 if the argument is a struct (structure) and a logical 0 otherwise.

Examples


A = 1;
res = isstruct(A)

B = struct();
res = isstruct(B)

C.a = 1;
C.B = 'hello';
res = isstruct(C)

See also


isa, struct.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< isstring Types module isuint16 >>