I want to put a matrix in a matrix, more precisely what I wanna reach is basically this:
I'm using the pmatrix
-environment. How can I do this?
Edit: Sorry, I wasn't precise - what I actually wanna do, is replacing the a
's here by a matrix A
which is aligned in the middle of the 4 rows and the 5 columns. The example above seems to be easier since the number of rows/columns of A_1 is odd.
\[
\begin{pmatrix}
a & a & a & a & 1 \\
a & a & a & a & 2 \\
a & a & a & a & 3 \\
a & a & a & a & 4 \\
\end{pmatrix}
\]
\vdots & A_{1}
as the third row, you may think of it as a nested matrix but TeX doesn't need to know that* & \cdots & *
then you can make the later rowA_1 & &
so the A comes under the left*