Dear all,
Ket say I have 3 matrices :
mat1 - matrix(rnorm(16), 4)
mat2 - matrix(rnorm(16), 4)
mat3 - matrix(rnorm(16), 4)
Now I want to merge those three matrices to a single one with dimension
4*3=12 and 4 wherein
on resulting matrix, row 1,4,7,10 will be row-1,2,3,4 of mat1, row
2,5,8,11
Hi:
This seems to work for your example:
matrix(t(cbind(mat1, mat2, mat3)), ncol = 4, byrow = TRUE)
HTH,
Dennis
On Mon, Mar 29, 2010 at 12:44 AM, Ron_M ron_michae...@yahoo.com wrote:
Dear all,
Ket say I have 3 matrices :
mat1 - matrix(rnorm(16), 4)
mat2 - matrix(rnorm(16), 4)
mat3 -
2 matches
Mail list logo