DISP

Purpose:

Displays a value as text in a pop-up box.

Syntax:

DISP(val)

val

-

A string, series or scalar. The value to display. Defaults to the current window.

Returns:

A string if the result is assigned to a variable, else a pop-up box is displayed.

Example:

disp("hi")

 

displays 'hi' in a pop-up box.

Example:

disp(pi/2)

 

displays 1.570796 in a pop-up box.

Example:

W1: rand(10)

disp(W1)

 

displays the values of the 10x10 random array in a pop-up box.

Example:

t = disp(rand(3));

viewtext(t)

 

Variable t contains the values of the 3x3 random matrix as a table of text values. The values are displayed by the VIEWTEXT function.

Remarks:

DISP converts the input parameter to a string and displays the result in a pop-up box. If the result is assigned to a variable, the values of a series or array or converted to a text table.

 

See ECHO to display the input in the status line.

See Also:

ECHO

MESSAGE

PRINTF

SPRINTF

VIEWTEXT