This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

display

Used internally for command-window display

Syntax

display(X)

Description

display(X) is called by MATLAB® for the object X when a statement is not terminated by a semicolon. To display the value of a variable, use the disp function.

Examples

collapse all

MATLAB calls display when you make an assignment to a variable without terminating the statement with a semicolon.

a = 7
a =

     7

Input Arguments

collapse all

Input value, specified as a variable or expression.