Types module | isa >> |
name = class(var) |
obj = class(st, strname) |
a variable
a struct
a string: classname desired
a string
an object of type 'strname' based on struct 'st'
name = class(var) returns the class of var variable.
Standard classes are:
'cell'
'struct'
'single'
'double'
'logical'
'char'
'int8'
'int16'
'int32'
'int64'
'uint8'
'uint16'
'uint32'
'uint64'
'function_handle'
A = 3;
res = class(A)
C = [1 ; 3];
res = class(C)
addpath([nelsonroot(), '/modules/overload/examples/complex']);
c = complexObj(3,4);
class(c)
isa, isdouble, isfloat, ischar, isstruct, iscell.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET