# Add Overbrace to describe a column of matrix

I want to add some over-braces to a matrix to get the following output:

However, this this what I managed to get:

I don't know how to get the neuron 1 and neuron 2 headings...I was thinking of overbraces but not sure how to use it in this case. The stuff on the right of the matrix is not aligned properly...My equation number is moving to the next line as well..Can anyone help me please.

My code is as follows (I am using amsmath package):


\end{document}

• Welcome to TeX.SE! Can you please add an screenshot of your resulting pdf to your answer? For a fast proof ... – Mensch Feb 17 at 1:34