<< class | Types module | iscell >> |
res = isa(var, str) |
a variable
a string: classname expected
a logical: true or false
isa returns a logical 1 if the argument is a cell array and a logical 0 otherwise.
str can also be 'numeric', 'float', or 'integer':
numeric: floating point or integer array: double, single, int8, uint8, int16, uint16, int32, uint32, int64, uint64
float: single or double precision floating-point array: double, single
integer: unsigned or signed integer array: int8, uint8, int16, uint16, int32, uint32, int64, uint64
If var is a handle object, str can be 'handle' or type name of the handle.
A = 3;
res = isa(A, 'double')
B = {'NelSon', 3, true};
res = isa(B, 'cell')
B = {'NelSon', 3, true};
res = isa(B, 'cell')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET