isstruct
Return true if variable var is a structure.
📝Syntax
res = isstruct(var)
📥Input Arguments
Parameter Description
var a variable
📤Output Arguments
Parameter Description
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
isastruct
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub