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
 COL1COL2COL3COL4COL5COL6
ROW11.0002.0003.0004.0005.0006.000
ROW211.00012.00013.00014.00015.00016.000
ROW321.00022.00023.00024.00025.00026.000
ROW431.00032.00033.00034.00035.00036.000
ROW541.00042.00043.00044.00045.00046.000

X
 COL7COL8COL9COL10
ROW17.0008.0009.00010.000
ROW217.00018.00019.00020.000
ROW327.00028.00029.00030.000
ROW437.00038.00039.00040.000
ROW547.00048.00049.00050.000


Last updated: July 20, 2026