Skip to content

class

Class name of an object.

str = class(object)

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.

class(3.14) % 'double'
class('hello') % 'char'
class({1, 'foo'}) % 'cell'
  • 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.