FUNCTION REFERENCE

display

Show a value with its name.

Show a value with its name.

Syntax

display(X)

Prints X the way a statement without a semicolon does: under the variable's name when X is a variable, otherwise as ans.

Example

A = [1 2; 3 4]; display(A)   % A = followed by the matrix

Differences from MATLAB: Classes cannot overload display; the output follows the current format setting.

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