Z_{0:k}
. I am not getting how to write the condition in between the lines and still keep the size of the matrix same both sides.Math & Science ⇒ Alignment for Condition inside Matrix
-
- Posts: 10
- Joined: Mon Jun 18, 2012 10:06 am
Alignment for Condition inside Matrix
- Attachments
-
- The desired Equation.
- equation.jpg (18.69 KiB) Viewed 4119 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Alignment for Condition inside Matrix
Stefan
-
- Posts: 10
- Joined: Mon Jun 18, 2012 10:06 am
Alignment for Condition inside Matrix
Code: Select all
\begin{align}
\mathbf{P}_{k \mid k} &=
\mathbf{\begin{bmatrix}
\mathbf{P}_{xx} & \mathbf{P}_{xm} \\
\mathbf{P}^T_{xm} & \mathbf{P}_{mm}
\end{bmatrix}}_{k \mid k} \\
&= \mathbf{E}
\begin{bmatrix}
\begin{pmatrix}
\mathbf{x}_k-\hat{\mathbf{x}_k} \\
\mathbf{m}-\hat{\mathbf{m}_k}
\end{pmatrix}
& \begin{pmatrix}
\mathbf{x}_k-\hat{\mathbf{x}_k} \\
\mathbf{m}-\hat{\mathbf{m}_k}
\end{pmatrix}^T
& \mid\mathbf{Z}_{0:k}
\end{bmatrix} \nonumber
\end{align}
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Alignment for Condition inside Matrix
\left[
and \right]
instead of the outer bmatrix
in the second line:Code: Select all
\begin{align}
\mathbf{P}_{k \mid k} &= \mathbf{\begin{bmatrix}
\mathbf{P}_{xx} & \mathbf{P}_{xm} \\
\mathbf{P}^T_{xm} & \mathbf{P}_{mm}
\end{bmatrix}}_{k \mid k} \\
&= \mathbf{E}\left[
\begin{pmatrix}
\mathbf{x}_k-\hat{\mathbf{x}_k} \\
\mathbf{m}-\hat{\mathbf{m}_k}
\end{pmatrix} \begin{pmatrix}
\mathbf{x}_k-\hat{\mathbf{x}_k} \\
\mathbf{m}-\hat{\mathbf{m}_k}
\end{pmatrix}^T \mid\mathbf{Z}_{0:k}
\right] \nonumber
\end{align}
\hat{\mathbf{m}}_k
instead of \hat{\mathbf{m}_k}
, look at the position of the accent.Stefan
-
- Posts: 10
- Joined: Mon Jun 18, 2012 10:06 am
Re: Alignment for Condition inside Matrix
cheers