Wednesday, November 25, 2009

matrix with row and column labels



\begin{array}{c c} &
\begin{array}{c c c} a & b &c \\
\end{array}
\\
\begin{array}{c c c}
p \\
q\\
r
\end{array}
&

\left[
\begin{array}{c c c}
.1 & .1 & 0 \\
.4 & 1 & 0 \\
.8 & 0 & .4
\end{array}
\right]
\end{array}