a = RandomInteger[10, {3, 3}]
|
Out[146]= {{8,5, 1},
{8,10,8},
{6,0, 8}}
|
b = RandomInteger[10, {3, 3}]
|
{{9, 0,1},
{10,2,7},
{8, 0,8}}
|
(*join side-by-side as in Matlab [A B]*)
Join[a, b, 2]
|
{{8,5, 1, 9,0,1},
{8,10,8,10,2,7},
{6,0, 8, 8,0,8}}
|
(*join vertically as in Matlab [A;B]*)
Join[a, b, 1]
|
{{8, 5 , 1},
{8, 10, 8},
{6, 0 , 8},
{9, 0 , 1},
{10,2 , 7},
{8, 0 , 8}}
|