DISP

Purpose:

Prints text on the status line.

Syntax:

DISP(val)

val

-

A string, series or scalar. The value to display.

Returns:

A string.

Example:

disp("hi")

 

prints 'hi' on the status line.

Example:

disp(pi/2)

 

prints 1.570796 on the status line.

Example:

W1: rand(10)

viewtext(disp(W1))

 

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

Example:

t = disp(rand(3);

message(t)

 

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

Remarks:

DISP converts the input parameter to s string and displays the result on the status line. If the result is assigned to a variable, the values of a series or array or converted to a text table.

See Also:

ECHO

MESSAGE

PRINTF

SPRINTF

VIEWTEXT