Copies values and row/column labels from a matrix to variates or texts (D.A.Murray).
No options
Parameters
MATRIX = matrices, symmetric matrices or diagonal matrices |
Matrices to copy into variates |
|---|---|
VARIATE = variates |
Saves the values from each matrix |
ROWS = variates |
Saves the row coordinates |
COLUMNS = variates |
Saves the column coordinates |
ROWLABELS = texts |
Saves the row labels |
COLLABELS = texts |
Saves the column labels |
Method
VMATRIX allows the values and row/column labels in a matrix, symmetric matrix or diagonal matrix to be copied into a set of variates (and texts). The matrix, symmetric matrix or diagonal matrix is supplied using the MATRIX parameter. The values are saved using the VARIATE parameter. The ROWS and COLUMNS parameters save the row and column coordinates, in variates. Similarly the ROWLABELS and COLLABELS allow the row and column labels to be saved, in texts.
Options: none.
Parameters: MATRIX, VARIATE, ROWS, COLUMNS, ROWLABELS, COLLABELS.
Method
EQUATE is used to transfer values.
See also
Procedure: VTABLE.
Commands for: Calculations and manipulation.
Example
CAPTION 'VMATRIX example'; STYLE=meta MATRIX [ROWS=!(2,4,6);COL=!(3.4,3.5,3.6,3.7)] m; VALUES=!(1...12) VMATRIX m; VARIATE=d; ROWS=r; COLUMNS=c; ROWLABELS=rlab; COLLABELS=clab PRINT d,r,rlab,c,clab