I write column vector using \bmatrix then I want to write underbrace and add text in this brace. but I don't how to do this. My code is
\documentclass
[a4paper, 12pt, oneside]{Thesis}
\usepackage{amsmath,amssymb,amstext,amsfonts}
\begin{document}
\begin{align*}
B&=
\begin{pmatrix}
\begin{bmatrix}
1 \\
2 \\
3\\
\underbrace{b_{1}}
\end{bmatrix}
\end{pmatix}
\end{align*}
\end{document}
The bracket is written in column vector but I want to put bracket and b_{1} outside the column vector. Please help me in doing this

\documentclassand ending with\end{document}. The above code is not only incomplete, but also erroneous. – Jasper Habicht Feb 08 '18 at 13:14