Contents Previous Next Subchapters

Printing A List Of Expressions
Syntax print list of values
See Also printexp , setprint

Description
Displays a list of values on the screen.

Tutorial
The print expression section contains examples of how a single value is displayed. You can use the print statement to display several values at once by separating them with commas. If you enter
     print 1, 2.1, 1i0
O-Matrix will respond
     1  2.1  (0,1)


Unlike when expression are printed by default, if a matrix is defined but has no value, O-Matrix displays its value as novalue. If you enter
     x = novalue
     print x
O-Matrix will respond
     novalue

Reference
Extra separating characters are displayed around a matrices values. These depend on the dimensions of the matrix and are defined below.

Scalars
A space is printed after a scalar.

Character Row Vectors
A space is printed after a character row vector.

Other Row Vectors
A left bracket and space are printed before the vector. The elements of the vector are separated by a space, comma, and another space. A space, right square bracket, and another space are printed after the vector.

Character Matrix
A carriage return is printed before the matrix and after each row.

Other Matrices
A left brace and carriage return are printed before the matrix. Each row is then printed according to the rules for row vectors followed by a carriage return. A right brace and carriage return are printed after the matrix.