1

I want to indicate with underbraces that in a matrix after an element H_1 there follow K zeros.

\begin{equation*}
P_1 = \begin{bmatrix}
H1,  & \underbrace{0, & 0, & ..., &0, }_{K-times} &H2, &0,  &0, & ..., &0 
\end{bmatrix}
\end{equation*}

But I get an error. If I do this without including the &-symbols it works, but for some purpose I would like to keep the &-symbols. Can I do this somehow while still using the &-operators?

2 Answers 2

1

Just underbrace a matrix without delimiters nested inside the pmatrix. I adjusted the spacing of the cdots:

    \documentclass{article}
    \usepackage{mathtools}

    \begin{document}

    \begin{equation*}
    P_1 = \begin{bmatrix}
    H1, & \smash[b]{\underbrace{\begin{matrix}0, & 0, & \mkern-11mu\cdots , & 0,\end{matrix}}_{K\text{ times}}} &H2, &0, &0, & \mkern-11mu\cdots , &0
    \end{bmatrix}
    \end{equation*}

    \end{document} 

enter image description here

0

You should not use the & within \underbrace tag, below suggestion may meets your requirement:

\begin{equation*}
P_1 = \begin{bmatrix}
H1,  & \underbrace{0,\quad 0,\quad \cdots\quad 0, }_{K-times} &H2, &0,  &0, & ..., &0 
\end{bmatrix}
\end{equation*}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.