Matrix of LaTex

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

See it on my own blog https://dyingdown.github.io/2019/09/03/LaTex-matrix/

Simple matrix

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

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

Matrix with brackets

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

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

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

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

Matrix with dots

$$
    \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:
[ a 11 a 12 ⋯ a 1 n a 21 a 22 ⋯ a 2 n ⋮ ⋮ ⋱ ⋮ a n 1 a n 2 ⋯ a n n ] \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] a11a21an1a12a22an2a1na2nann

Matrix with parameter

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

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

Inline matrix

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 KaTeX parse error: No such environment: smallmatrix at position 14: \bigl( \begin{̲s̲m̲a̲l̲l̲m̲a̲t̲r̲i̲x̲}̲ a & b \\ c & d… and the display is below.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值