isobject

Return true if variable var is an object.

Syntax

  • res = isobject(var)

Input argument

  • var - a variable

Output argument

  • res - a logical: true or false

Description

ishandle returns a logical 1 if the argument is an object and a logical 0 otherwise.

Example

A = 3;
res = isobject(A)

addpath([modulepath('overload', 'root'), '/examples/complex']);
A = complexObj(1, 2);
res = isobject(A)

See also

isa, ishandle.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated