Navigation

Operators and Keywords

Function List:

C++ API

: printd (obj, filename)
: out_file = printd (…)

Convert any object acceptable to disp into the format selected by the suffix of filename.

If the return argument out_file is given, the name of the created file is returned.

This function is intended to facilitate manipulation of the output of functions such as stemleaf.

See also: stemleaf.

Demonstration 1

The following code

 r2 = char ( ...
 "stem step: 10, data: unsorted.", ...
 "Hinges:    lo: 12, hi: 42"     , ...
 "   1 | 22118"                  , ...
 "   2 | 28"                     , ...
 "   3 | 98"                     , ...
 "   4 | 244"                    , ...
 "   5 | 2"                      );
 printd (r2, "test_p.txt");
 system ("cat test_p.txt");
 delete ("test_p.txt");

gives an example of how 'printd' is used.

Package: octave