Navigation

Operators and Keywords

Function List:

C++ API

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

Query or set the internal variable that controls whether the dimensions of empty matrices are printed along with the empty matrix symbol, ‘[]’.

For example, the expression

zeros (3, 0)

will print

ans = [](3x0)

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