# 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

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

## See also

[class](class), [isstruct](https://github.com/Nelson-numerical-software/nelson-gitbook/blob/master/en/types/isstruct.html).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
