Code: Select all
\begin{tabularx}{\textwidth}{ X X X }
\centering
$\begin{matrix}
2 & 0 & 0 & 0 & 0 & 0 \\
0 & 2 & 0 & 0 & 0 & 0 \\
0 & 0 & 2 & 0 & 0 & 0 \\
0 & 0 & 0 & 2 & 0 & 0 \\
0 & 0 & 0 & 0 & 2 & 0 \\
0 & 0 & 0 & 0 & 0 & 2
\end{matrix} $ \\ &
\centering
$\begin{matrix}
0 & 1 & 0 & 0 & 0 & 1 \\
1 & 0 & 1 & 0 & 0 & 0 \\
0 & 1 & 0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 & 0 & 1 \\
1 & 0 & 0 & 0 & 1 & 0
\end{matrix} $ \\ &
%\centering
$\begin{matrix}
2 & 1 & 0 & 0 & 0 & 1 \\
1 & 2 & 1 & 0 & 0 & 0 \\
0 & 1 & 2 & 1 & 0 & 0 \\
0 & 0 & 1 & 2 & 1 & 0 \\
0 & 0 & 0 & 1 & 2 & 1 \\
1 & 0 & 0 & 0 & 1 & 2
\end{matrix} $ \\
\centering
\textit{Degree Matrix} &
\centering
\textit{Adjacency Matrix} &
\centering
\textit{Laplacian Matrix} \\
\end{tabularx}
! Extra alignment tab has been changed to \cr.
I have tried a number of things none of which work, any help would be greatly appreciated.