LaTeX / Markdown - Matrix
Created|Updated|LaTeX
|Word count:550|Reading time:3min|Post View:
- Basic grammar using matrix in Markdown
1
2
3
4
5
6
7
8
9
10$$
\left(
\begin{matrix}
a & b & c & d & e \\
f & g & h & i & j \\
k & l & m & n & o \\
p & q & r & s & t
\end{matrix}
\right)
$$
Matrix equation with color
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32$$
\left\{
\begin{matrix}
\color{blue}{b_1} & \color{blue}{c_1} & 0 & 0 & 0 & 0 \\
\color{blue}{a_2} & \color{blue}{b_2} & \color{blue}{c_2} & 0 & 0 & 0 \\
0 & \color{blue}{a_3} & \color{blue}{b_3} & \color{blue}{c_3} & 0 & 0 \\
0 & 0 & \color{blue}{a_4} & \color{blue}{b_4} & \color{blue}{c_4} & 0 \\
0 & 0 & 0 & \color{blue}{a_5} & \color{blue}{b_5} & \color{blue}{c_5} \\
0 & 0 & 0 & 0 & \color{blue}{a_6} & \color{blue}{b_6}
\end{matrix}
\right\}
\left\{
\begin{matrix}
x1 \\
x2 \\
x3 \\
x4 \\
x5 \\
x6
\end{matrix}
\right\} =
\left\{
\begin{matrix}
\color{blue}{r_1} \\
\color{blue}{r_2} \\
\color{blue}{r_3} \\
\color{blue}{r_4} \\
\color{blue}{r_5} \\
\color{blue}{r_6} \\
\end{matrix}
\right\}
$$Dots in Matrix
1
2
3\cdots % horizontal dots
\vdots % verical dots
\ddots % diagonal dotsExample
1
2
3
4
5
6
7
8
9\left\{
\begin{matrix}
b_1 & c_1 & & & 0\\
a_2 & b_2 & c_2 & & \\
& a_3 & b_3 & \ddots & \\
& & \ddots & \ddots & c_{n_1} \\
0 & & & a_n & b_n
\end{matrix}
\right\}
Note: If you see that matrix brackets are broken, please zoom in/out the page. This is a mathjax formula rendering issue, not a syntax issue.
Author: Boyu Gao
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Related Articles
Comment