I’m going to need a matrix for my essay today, so make a note
Drawing matrices requires special syntax
(1) Draw the ordinary matrix, without parentheses
?
\begin{matrix}
a & b & c & d & e\\
f & g & h & i & j \\
k & l & m & n & o \\
p & q & r & s & t
\end{matrix}
?
Copy the code
(2) Draw the matrix with brackets
?
\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]
?
Copy the code
(3) Draw the matrix with braces
?
\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\}
?
Copy the code
(4) Add a parameter before the matrix
$$A=
\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\}
?
Copy the code
(5) There are ellipses in the middle of the matrix
//\cdots = horizontal ellipsis //\vdots = vertical ellipsis //\ddots = oblique ellipsis $$A=
\left\{
\begin{matrix}
a & b & \cdots & e\\
f & g & \cdots & j \\
\vdots & \vdots & \ddots & \vdots \\
p & q & \cdots & t
\end{matrix}
\right\}
?
Copy the code
(6) Add the root line in the middle of the matrix
/ / array must be an array / / {CCCC | c} c said in the matrix elements, can control the position of the | $$A=
\left\{
\begin{array}{cccc|c}
a & b & c & d & e\\
f & g & h & i & j \\
k & l & m & n & o \\
p & q & r & s & t
\end{array}
\right\}
?
Copy the code
Hope I can help you
Welcome to follow my wechat public number, and make progress with me every day!