Module Library
TABPRT Call
RUN TABPRT (matrix) ;
The TABPRT module is part of the IMLMLIB library. It is included for demonstration purposes. The TABPRT module prints a matrix in a tabular format. The module can be useful for printing large matrices. The module source code can be edited for further cosmetic changes, such as alternative format or field width, or for assigning specific row and column labels.
r = shape(1:50, 5, 10); /* a 5 x 10 numeric matrix */
run tabprt( r );
Figure 3: Tabular Display
| X | ||||||
|---|---|---|---|---|---|---|
| COL1 | COL2 | COL3 | COL4 | COL5 | COL6 | |
| ROW1 | 1.000 | 2.000 | 3.000 | 4.000 | 5.000 | 6.000 |
| ROW2 | 11.000 | 12.000 | 13.000 | 14.000 | 15.000 | 16.000 |
| ROW3 | 21.000 | 22.000 | 23.000 | 24.000 | 25.000 | 26.000 |
| ROW4 | 31.000 | 32.000 | 33.000 | 34.000 | 35.000 | 36.000 |
| ROW5 | 41.000 | 42.000 | 43.000 | 44.000 | 45.000 | 46.000 |
| X | ||||
|---|---|---|---|---|
| COL7 | COL8 | COL9 | COL10 | |
| ROW1 | 7.000 | 8.000 | 9.000 | 10.000 |
| ROW2 | 17.000 | 18.000 | 19.000 | 20.000 |
| ROW3 | 27.000 | 28.000 | 29.000 | 30.000 |
| ROW4 | 37.000 | 38.000 | 39.000 | 40.000 |
| ROW5 | 47.000 | 48.000 | 49.000 | 50.000 |
Last updated: July 20, 2026