class
Class name of an object.
Syntax
Section titled “Syntax”str = class(object)Description
Section titled “Description”Returns the class name (as a string) of object. For built-in types: 'double', 'single', 'int32', 'logical', 'char', 'cell', 'struct', etc. For user-defined classes, returns the class name as declared in the class definition.
Examples
Section titled “Examples”class(3.14) % 'double'class('hello') % 'char'class({1, 'foo'}) % 'cell'See also
Section titled “See also”methods— List the methods of a class or object.properties— List the properties of a class or object.events— List the events declared by a class.