FUNCTION REFERENCE

class

Name of the type of a value.

Name of the type of a value.

Syntax

name = class(A)

Returns 'double', 'logical', 'char', 'cell' or 'graphics handle'.

Example

class('a')   % 'char'

Differences from MATLAB: Not checked against MATLAB yet. Complex values report 'double'. A graphics handle reports 'graphics handle' instead of a class such as 'matlab.graphics.axis.Axes'.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.