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} ...

offline
  • 267
  • See also: https://tex.stackexchange.com/questions/12910/how-do-i-typeset-vertical-and-horizontal-lines-inside-a-matrix – EthanAlvaree Mar 23 '23 at 21:03

2 Answers2

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

gernot
  • 49,614
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}