I would like to have a matrix with round brackets, a descriptive row which is not included in the surrounding brackets and overbraces and underbraces as can be seen in this picture:
I've tried to adapt this \bordermatrix
code but did not come far:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
\phantom{(17') \rightarrow\hspace{\arraycolsep}}
\underbrace{
\bordermatrix{
\hspace{-\arraycolsep} &
\overbrace{}^{label2} &
&
\overbrace{}^{label3} \cr
& 1 & 1 & 1 \cr
& 1 & 1 & 1
}
}_{\text{label1}}
\]
\end{document}