I'm using LyX. I came across with the following Matrix:
I could use the following LaTeX for that:
\begin{bmatrix}| & |\\
\underline{x}_{1} & \underline{x}_{2}\\
| & |
\end{bmatrix}
But is it the right way? What If I want the | in multilines? Then I'll just use the | in each place. I'm sure there is a better way for that.


|on the top and bottom andx_1in the middle. – vesii May 26 '20 at 17:09