[Tex/LaTex] Array curly braces

arraysbrackets

Please, how to make these two curly brackets in an array?

enter image description here

enter image description here

Edit:

I just took liberty to glue the two half images above.

enter image description here

Best Answer

Something like this?

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathtools, bigstrut}

\begin{document}

\[ \begin{pmatrix}
    \bigstrut[t] 0 & & & & & 0 \\[-0.5ex]
     \vdots & & & \raisebox{0.35ex}[0pt][0pt]{$ \begin{rcases}0\\[-1ex] \vdots within{0} \\[-0.75ex]0\end{rcases}\left\lfloor\frac{i}{2}\right\rfloor $} &
                   & \vdots \\
    0 & & & & & 0 \\
     \vdots \\[-1.5ex]
     \vdots \\
    0 & & & & & \raisebox{0.35ex}[0pt]{$\left\lfloor\frac{i}{2}\right\rfloor \begin{cases}0\\[-1ex] \vdots within{0} \\[-0.75ex]0\end{cases}\hspace{-1em}$}
  \end{pmatrix} \]


\end{document} 

enter image description here

To have the 0s in the last column aligned, you can use the pmatrix* environment (defined by mathtools) with option[r], as mentioned by @Mico. However this will have the effect that all columns will be right-aligned, which might be unwanted (for instance a 0 in the second column, last row, would require a left alignment), or use \llap for this specific element:

\[ \begin{pmatrix}
    \bigstrut[t] 0 & & & & & 0 \\[-0.5ex]
      \vdots & & & \raisebox{0.35ex}[0pt][0pt]{$ \begin{rcases}0\\[-1ex] \vdotswithin{0} \\[-0.75ex]0\end{rcases}\left\lfloor\frac{i}{2}\right\rfloor $} &
                    & \vdots \\
    0 & & & & \qquad & 0 \\
      \vdots \\[-1.5ex]
      \vdots \\
    0 & & & & \qquad & \raisebox{0.35ex}[0pt]{\llap{$\left\lfloor\frac{i}{2}\right\rfloor \begin{cases}0\\[-1ex] \vdotswithin{0} \\[-0.75ex]0\end{cases}$\hspace{-1.4em}}}
  \end{pmatrix} \]

enter image description here