![矩阵的设定单位/对齐问题](https://linux22.com/image/312879/%E7%9F%A9%E9%98%B5%E7%9A%84%E8%AE%BE%E5%AE%9A%E5%8D%95%E4%BD%8D%2F%E5%AF%B9%E9%BD%90%E9%97%AE%E9%A2%98.png)
如何获得矩阵 [m] 的单位,如图所示。
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\begin{document}
\begin{equation}\label{eq:appendrow}
ScanPos=\left[ \begin{matrix}
A \\
B \\
C\\
\end{matrix} \right]=\left[\begin{array}{ccc}
-3.3816 & \ -1.6166 & \ 1.75\\
-3.3816 & \ -1.6166 & \ 1.5\\
-3.3816 & \ -1.6166 & \ 1.25\\
\end{array}\right]{[}m{]}
\end{equation}
\end{document}
答案1
几乎相同的解决方案,略有改进:
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{babel}
\begin{document}
\begin{equation}\label{eq:appendrow}\renewcommand\arraycolsep{0.67em}
\text{ScanPos}=\begin{bmatrix}
A \\
B \\
C\\
\end{bmatrix}=\begin{bmatrix}
-3.3816 & -1.6166 & 1.75\\
-3.3816 & -1.6166 & 1.5\hphantom{0}\\
-3.3816 & -1.6166 & 1.25\\
\end{bmatrix}_{[\mathrm m]}
\end{equation}
\end{document}
答案2
这是你想要的吗?
\documentclass[english]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}\label{eq:appendrow}
\text{ScanPos}=
\begin{bmatrix}
A B C
\end{bmatrix}=
\begin{bmatrix}
-3.3816 & \ -1.6166 & \ 1.75\\
-3.3816 & \ -1.6166 & \ 1.5\\
-3.3816 & \ -1.6166 & \ 1.25\\
\end{bmatrix}_{[m]}
\end{equation}
\end{document}