[Tex/LaTex] Submatrix and element alignment within matrix

arraysmatrices

I'm having trouble aligning submatrices and elements within the same matrix. Essentially, what I want to do is this (excuse the terrible paint-job):

example

Where the submatrix Q is located at the middle of the upper-left four matrix cells. I'm primarily familiar with the array environment: is this a possibility there?

Best Answer

How about a matrix inside a matrix?

\documentclass{article}
\pagestyle{empty}% for cropping
\usepackage{amsmath}
\begin{document}
$
\begin{vmatrix}
    Q & \begin{matrix} 0 \\ 0 \end{matrix} \\
    \begin{matrix} 2 & 3 \end{matrix} & -1
\end{vmatrix}
$
\end{document}

enter image description here

Related Question