This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Join

Join
concatenates lists or other expressions that share the same head.
Join
joins the objects at level n in each of the .
  • Join works on SparseArray objects by effectively concatenating the corresponding ordinary lists. »
  • Join handles ragged arrays by effectively concatenating all successive elements at level n in each of the . »
Infix syntax:
In[1]:=
Click for copyable input
Out[1]=
 
Infix syntax:
In[1]:=
Click for copyable input
Out[1]=
Join two matrices to make longer columns:
Join columns of two matrices to make longer rows:
With ragged arrays, successive elements are effectively concatenated:
The second row comes from the concatenation of nothing with :
Join depth 3 arrays at different levels:
Join expressions with any head:
Join works with SparseArray objects:
Augment a matrix by adding a row:
Augment by a column:
Make a block matrix:
This can also be done with ArrayFlatten:
Successively double a list by joining to itself:
Build up the Thue-Morse sequence []:
New in 1 | Last modified in 6