Navigation

Operators and Keywords

Function List:

C++ API

: val = split_long_rows ()
: old_val = split_long_rows (new_val)
: split_long_rows (new_val, "local")

Query or set the internal variable that controls whether rows of a matrix may be split when displayed to a terminal window.

If the rows are split, Octave will display the matrix in a series of smaller pieces, each of which can fit within the limits of your terminal width and each set of rows is labeled so that you can easily see which columns are currently being displayed. For example:

octave:13> rand (2,10)
ans =

Columns 1 through 6:

 0.75883  0.93290  0.40064  0.43818  0.94958  0.16467
 0.75697  0.51942  0.40031  0.61784  0.92309  0.40201

Columns 7 through 10:

 0.90174  0.11854  0.72313  0.73326
 0.44672  0.94303  0.56564  0.82150

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

See also: format.

Package: octave