1

This question already has an answer here:

Is there a way to typeset the following matrix in LaTeX?

enter image description here

In my attempt, I got to the following:

\begin{equation}
C=\left[\begin{array}{cccccccccc}
1 & 1  & 1 & 0 & \ldots & \ldots & -1 & -1 & -1\\
1 & 1  & 1 & 1 & \ldots & \ldots & \ldots & -1 & -1\\
1 & 1 & \ldots   & 1 & 1 & \ldots & \ldots & 0 & -1\\
0 & 1 & \ldots & \ldots  & 1 & 1 & \ldots & 0 & 0\\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
\hdotsfor{9}\cr\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots &\vdots &\vdots  \\
-1 &0 & \ldots & \ldots & 0 & 1 & 1 & 1 & 1\\
-1 & -1 & 0 & \ldots & \ldots & 0 & 1 & 1 & 1\\
-1 & -1 & -1 & \ldots & \ldots & \ldots & 0 & 1 & 1
\end{array} \right]
\end{equation}

Would like to know how to add the curly braces.

marked as duplicate by user36296, Werner, Stefan Pinnow, user121799, Phelype Oleinik Oct 3 '18 at 19:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

You can take as preview this example.

enter image description here

\documentclass{article}
\usepackage{mathtools}

\begin{document}

\begin{equation*}
\underbrace{%
\begin{bmatrix}
    1  & 1 & 0 & 0 & 0 & 3& 0 \\
   1 & 1 & 1 & 3 & 0 & 0 & 0 \\
   1 & 1 & 4 & 4 & 3 & 0 & 0 \\
    0 & -1 & 4 & 3& 3 & -1 & 0 \\
    0 & 0 & 4 & 4 & 3 & 16 & -1 \\
    0 & 0 & 4 & & 4 & 0 & 6 \\
    0 & 0 & 0 & 0 & 0 & 2 & 4 \\
\end{bmatrix}
}_{\mathrm{bla\,\,bla\,\, bla}}
\end{equation*}

\end{document}

or see at the link braces over matrix.

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