display

Class: matlab.mixin.CustomDisplay
Package: matlab.mixin

Print variable name and display object

Syntax

display(obj)

Description

display(obj) prints the name of input argument obj as it appears in the workspace of the caller. If there is no assignment to a variable, display uses, ans. display then calls the disp method to print the object.

Input Arguments

obj

Object array of a class derived from matlab.mixin.CustomDisplay

Attributes

Access

public

Sealed

true

To learn about attributes of methods, see Method Attributes in the MATLAB® Object-Oriented Programming documentation.

See Also

|

Related Examples

Was this topic helpful?