Spring til indhold

This is the 16th video in a series of 21 by Dr Vincent Knight of Cardiff University. In this video, Vince shows how to quickly write out matrices in LaTeX, using the amsmath package and the \pmatrix (for a matrix with curly brackets), \matrix (for a matrix with no brackets), and \vmatrix (used to denote the determinant of a matrix) commands. Here's the code for the final example:

$$
\begin{vmatrix}
a&b\\
c&d\\
e&f\\
\end{vmatrix}
$$

The example above (also shown in the video) is also provided here as a template. To try this for yourself, click here to open the 'Matrices' example.

Overleaf guides

LaTeX Basics

Mathematics

Figures and tables

References and Citations

Languages

Document structure

Formatting

Fonts

Presentations

Commands

Field specific

Class files

Advanced TeX/LaTeX