How to typeset vector like this in latex
I came across an article
How do I typeset vertical and horizontal lines inside a matrix?
which mentions below code
\[
U =
\left[
\begin{array}{cccc}
\vertbar & \vertbar & & \vertbar \\
u^{(1)} & u^{(2)} & \ldots & u^{(n)} \\
\vertbar & \vertbar & & \vertbar
\end{array}
\right]
\]
and generates equation like this
I have trouble putting right part in the equation, How can I do it.
\in \mathbb R^{n \times n}
after\right]
, the result should be the desired one. – epR8GaYuh Aug 22 '17 at 7:23