$$
\text{i: current-state}\Bigg\{\begin{matrix}0 \\ 1 \\ 2\end{matrix}\underbrace{\begin{bmatrix}P_{00} & P_{01} & P_{02} \\ P_{10} & P_{11} & P_{12} \\ P_{20} & P_{21} & P_{22}\end{bmatrix}}_{\text{j: next-state: 0, 1 ,2 }}
$$
创建行和列均有编号的矩阵的最佳方法是什么?
答案1
这是一个建议。
\documentclass{article}
\usepackage{array,amsmath}
\begin{document}
$\begin{array}{c@{}c}
\text{text} \left\{\begin{array}{c@{}}
0 \\ 1 \\ 2 \\
\end{array}\right.
& \left[\begin{array}{@{}*{3}{wc{5mm}}@{}}
$P_{00}$ & $P_{01}$ & $P_{02}$ \\
$P_{10}$ & $P_{11}$ & $P_{12}$ \\
$P_{20}$ & $P_{21}$ & $P_{22}$ \\
\end{array}\right]\\
&
\underbrace{\begin{array}{@{}*{3}{wc{5mm}}@{}}
0 & 1 & 2
\end{array}}_{\text{text}}
\end{array}$
\end{document}