# LaTeX Vertical line in matrix

1. Feb 23, 2017

### BvU

Anyone know how to get a vertical line between two columns ? Like here in AMSTeX

2. Feb 23, 2017

### BvU

Never mind, found an alternative:
Code (LaTeX):

\left[
\begin{array}{cccc|c}
1 & 0 & 3 & -1 & 0 \\
0 & 1 & 1 & -1 & 0 \\
0 & 0 & 0 & 0 & 0 \\
\end{array
}
\right
]

$$\left[ \begin{array}{cccc|c} 1 & 0 & 3 & -1 & 0 \\ 0 & 1 & 1 & -1 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ \end{array} \right]$$