答案1
也许这会对你有所帮助(改编自这个答案):
\documentclass{article}
\usepackage{amsmath}
\newcommand\bovermat[2]{%
\makebox[0pt][l]{$\smash{\overbrace{\phantom{%
\begin{matrix}#2\end{matrix}}}^{\text{#1}}}$}#2}
\newcommand\partialphantom{\vphantom{\frac{\partial e_{P,M}}{\partial w_{1,1}}}}
\begin{document}
\begin{equation}
\begin{matrix}
A_n
=
\begin{bmatrix}
a_1&b_{1,2}&\bovermat{1}{0,\cdots,0} & b_{1,s_{1}+1} &
\bovermat{2}{0,\cdots,0}\\
\end{bmatrix}
\end{matrix}
\end{equation}
\end{document}
这使: