I have two matrices $A$ and $B$ which are the same size. Each element of $A$ is a list of numbers. Each element of $B$ is just a number. How do I insert each element of $B$ into the corresponding list of $A$?
For example say I have:
A = {{{1,2},{3,4}},{{5,6},{7,8}},{{9,10},{11,12}}}
$ = \begin{pmatrix} (1,2) & (3,4)\\ (5,6) & (7,8) \\ (9,10) & (11,12) \end{pmatrix}$
and
B = {{0,0},{1,1},{2,2}}
$=\begin{pmatrix} 0 & 0\\1&1\\2&2 \end{pmatrix}$
How do I form:
{{{1,2,0},{3,4,0}},{{5,6,1},{7,8,1}},{{9,10,2},{11,12,2}}}
$ = \begin{pmatrix} (1,2,0) & (3,4,0)\\ (5,6,1) & (7,8,1) \\ (9,10,2) & (11,12,2) \end{pmatrix}$
Thanks very much for any help