Contents Previous Next Subchapters

Print Values Inside the Debugger
Syntax print name
print 
name(i)
print 
name(i,j)
See Also active
Abbreviation p
Menu Command Debug | Print ...

Description
Prints elements of the matrix name. If at the O> prompt you enter
     x = {1, 2, 3}
     y = {[1, 2], [3, 4]}
and then at the Debug> prompt you enter
     print x
O-Matrix will respond
     {
     1
     2
     3
     }
If you then enter
     print x(3)
O-Matrix will respond
     3
If you then enter
     print y(2, 2)
O-Matrix will respond
     4

Reference
The indices i and j in the syntax must be integer scalars; i.e., expressions are not supported. If the syntax print name(i) is used, the corresponding matrix must be a vector.

The active command can be used to determine which variables can currently be printed.