多行矩阵方程

多行矩阵方程

我尝试创建这个多线矩阵方程: 在此处输入图片描述

但出于某种原因,\\它不起作用。这是我得到的结果:

%
\begin{equation}
\begin{pmatrix}
H^{TE,inc}_{y1}(1-R^{TE})\\[6pt]
-H^{TE,inc}_{x1}(1-R^{TE})
\end{pmatrix}
=
\begin{pmatrix}
Y^{TE,in}_{xx} & Y^{TE,in}_{xy}\\[6pt]
Y^{TE,in}_{yx} & Y^{TE,in}_{yy}
\end{pmatrix}
%
\begin{pmatrix}
E^{TE,inc}_{x1}(1+R^{TE})\\[6pt]
E^{TE,inc}_{y1}(1+R^{TE})
\end{pmatrix} 
\\[6pt]
\text{and} \\[6pt]
\begin{pmatrix}
H^{TM,inc}_{y1}(1-R^{TM})\\[6pt]
-H^{TM,inc}_{x1}(1-R^{TM})
\end{pmatrix}
=
\begin{pmatrix}
Y^{TM,in}_{xx} & Y^{TM,in}_{xy}\\[6pt]
Y^{TM,in}_{yx} & Y^{TM,in}_{yy}
\end{pmatrix}
%
\begin{pmatrix}
E^{TM,inc}_{x1}(1+R^{TM})\\[6pt]
E^{TM,inc}_{y1}(1+R^{TM})
\end{pmatrix} \\[6pt]
\label{eqch3_9}
\end{equation}
%

答案1

希望以下内容能满足您的要求:

\documentclass{book}
\usepackage{mathtools}

\begin{document}

\begin{align}
\begin{pmatrix}
H^{TE,inc}_{y1}(1-R^{TE})\\[6pt]
-H^{TE,inc}_{x1}(1-R^{TE})
\end{pmatrix}
=
\begin{pmatrix}
Y^{TE,in}_{xx} & Y^{TE,in}_{xy}\\[6pt]
Y^{TE,in}_{yx} & Y^{TE,in}_{yy}
\end{pmatrix}
%
\begin{pmatrix}
E^{TE,inc}_{x1}(1+R^{TE})\\[6pt]
E^{TE,inc}_{y1}(1+R^{TE})
\end{pmatrix} \nonumber\\
\intertext{and} 
\begin{pmatrix}
H^{TM,inc}_{y1}(1-R^{TM})\\[6pt]
-H^{TM,inc}_{x1}(1-R^{TM})
\end{pmatrix}
=
\begin{pmatrix}
Y^{TM,in}_{xx} & Y^{TM,in}_{xy}\\[6pt]
Y^{TM,in}_{yx} & Y^{TM,in}_{yy}
\end{pmatrix}
%
\begin{pmatrix}
E^{TM,inc}_{x1}(1+R^{TM})\\[6pt]
E^{TM,inc}_{y1}(1+R^{TM})
\end{pmatrix}\label{eqch3_9}
\end{align}

\end{document}

相关内容