class_
Environment
Return the class/type of a value as a string. Returns 'double' for numbers/arrays, 'char' for strings, 'logical' for booleans, 'cell' for cell arrays, 'struct' for objects, or the system type ('tf', 'ss', 'zpk') for control objects.
Syntax
class(x)
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab