ORIGIN

Matrix of LaTex

LaTex 2 mins384 words

In order to post my note of linear algebra, I need to know how to put matrix using LaTex. The followings are the usage.

Simple matrix

1
2
3
4
5
6
7
$$
\begin{matrix}
7 & 8 & 9 \\
4 & 5 & 6 \\
1 & 2 & 3
\end{matrix}
$$

Display:
$$
\begin{matrix}
7 & 8 & 9\
4 & 5 & 6\
1 & 2 & 3\end{matrix}
$$

Matrix with brackets

Curly braces {…}

1
2
3
4
5
6
7
8
9
$$
\left\{
\begin{matrix}
7 & 8 & 9 \\
4 & 5 & 6 \\
1 & 2 & 3
\end{matrix}
\right\}
$$

Display:
$$
\left{\begin{matrix}7&8&9\4&5&6\1&2&3\end{matrix}\right}
$$

Square brackets […]

1
2
3
4
5
6
7
8
9
$$
\left[
\begin{matrix}
7 & 8 & 9 \\
4 & 5 & 6 \\
1 & 2 & 3
\end{matrix}
\right]
$$

Display:
$$
\left[
\begin{matrix}
7 & 8 & 9 \
4 & 5 & 6 \
1 & 2 & 3
\end{matrix}
\right]
$$

Matrix with dots

1
2
3
4
5
6
7
8
9
10
$$
\left[
\begin{matrix}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{n1} & a_{n2} & \cdots & a_{nn} \\
\end{matrix}
\right]
$$

Display:
$$
\left[
\begin{matrix}
a_{11} & a_{12} & \cdots & a_{1n} \
a_{21} & a_{22} & \cdots & a_{2n} \
\vdots & \vdots & \ddots & \vdots \
a_{n1} & a_{n2} & \cdots & a_{nn} \
\end{matrix}
\right]
$$

Matrix with parameter

1
2
3
4
5
6
7
8
$$ 
\left[
\begin{array}{cc|c}
2 & 5 & 6 \\
9 & 3 & 7
\end{array}
\right]
$$

Display:
$$
\left[
\begin{array}{cc|c}
2 & 5 & 6 \
9 & 3 & 7
\end{array}
\right]
$$

Inline matrix

1
This is an example of inline matrix $\bigl( \begin{smallmatrix} a & b \\ c & d \end{smallmatrix} \bigr)$ and the display is below.

This is an example of inline matrix $\bigl( \begin{smallmatrix} a & b \ c & d \end{smallmatrix} \bigr)$ and the display is below.

TOP
COMMENT
  • ABOUT
  • |
o_oyao
  The Jigsaw puzzle is incomplete with even one missing piece. And I want to be the last piece to make the puzzle complete.
Like my post?
Default QR Code
made with ❤️ by o_oyao
©o_oyao 2019-2024

|