|
MATRIX COMBINE COLUMNSName:
For example, given the matrices
where <m1> is the first input matrix; <m2> is the second input matrix; and <m3> is the resulting matrix. Note that <m3> can be the same name as either <m1> or <m2>.
LET MOUT = MATRIX COMBINE COLUMNS M1 M2
dimension 100 columns
.
read matrix m1
1 2
3 4
end of data
.
read matrix m2
5 6
7 8
end of data
.
let m3 = matrix combine columns m1 m2
.
set write decimals 0
print m3
The following output is generated.
MATRIX M3 -- 2 ROWS
-- 4 COLUMNS
VARIABLES--M31 M32 M33 M34
1 2 5 6
3 4 7 8
Date created: 01/26/2011 |