3

Can someone please tell me how I get vertical lines in the columns of a matrix like it is shown in the picture?

enter image description here

I started with ... = \begin{pmatrix} \lambda A' & \mu B' & \tau C' \end{pmatrix} ...

1

2 Answers 2

4

You could use a \vline

\documentclass{article}
\usepackage{amsmath}
\begin{document}

$ M = \begin{pmatrix}
\vline & \vline & \vline \\
\lambda A' & \mu B' & \tau C' \\
\vline & \vline & \vline
\end{pmatrix}$
\end{document}
2
  • Glad it helped! If this answer or any other one solved your issue, please consider to mark it as accepted. Commented Aug 6, 2018 at 10:08
  • Is there a similar hline command for row vectors? Commented Mar 23, 2023 at 21:03
6

Use \mid as ordinary table entry.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ M =
  \begin{pmatrix}
    \mid & \mid & \mid \\
    \lambda A' & \mu B' & \tau C' \\
    \mid & \mid & \mid
  \end{pmatrix}
\]
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .