矩阵1代码 \documentclass{ctexart} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} 1 & 0 & -1\\ 1 & 0 & -1\\ 1 & 0 & -1 \end{bmatrix} \] \end{document} 矩阵1运行结果 矩阵2代码 \documentclass{ctexart} \usepackage{amsmath} \begin{document} \[ T^{i-1}_{i}=\begin{bmatrix} \cos\theta _{i} & -\sin\theta_{i} & 0 & a_{i-1}\\ \sin\theta_{i}\cos\alpha_{i-1} & \cos\theta_{i}\cos\alpha_{i-1} & -\sin\alpha_{i-1} & -d_{i}\sin\alpha_{i-1}\\ \sin\theta_{i}\sin\alpha_{i-1} & \cos\theta_{i}\sin\alpha_{i-1} & \cos\alpha_{i-1} & d_{i}\cos\alpha_{i-1}\\ 0 & 0 & 0 & 1 \end{bmatrix} \] \end{document} 矩阵2运行结果