Mattrib Statement (IML)

Contents Index


Labels, row names, column names, and numeric formats can be associated with a matrix through the mattrib statement. Example:

mattrib m
        rowname=({ 'week one' 'week two'})
        colname=({ mon tue wed thur fri})
        label='Test Scores'
        format=3.0;

will cause the 2x5 matrix m to be printed with the label 'Test Scores' rather than the matrix name (m). The indicated names will appear bordering the matrix. Character vectors can be used for the rowname and colname options. The entries will be formatted with a total width of 3 and no places right of the decimal. Any of the rowname, colname, label, or format entries may be omitted.


Contents Index

Copyright © 1997 by Jerry Alan Veeh. All rights reserved.