<< ischar Types module isdouble >>

isclass


Return true if variable var is a class object.


Syntax


res = isclass(var)

Input argument


var

a variable

Output argument


res

a logical: true or false

Description


isclass returns a logical 1 if the argument is a class object and a logical 0 otherwise.

Example


A = 3;
res = isclass(A)
addpath([nelsonroot(), '/modules/overload/examples/complex']);
c = complexObj(3,4);
res = isclass(c)

See also


class, isstruct.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< ischar Types module isdouble >>