Draw array(data structure) with underbraces at subarray

I'm pretty new to latex and I'm having some difficult to draw this:

It is very important that the dots do not be inside a column, but act like a separator (actually it indicates that there are an unknown number of elements between the two parts of array)

I have no idea how to do this. Also if I draw 2 arrays they won't be at same line, and I think it is not the correct way to think to solve the problem...

Something like that?

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}

\begin{document}

$\underbrace{\begin{matrix}%{*{9}{c}} aa & bb & cc & dd & ee &\parbox{1cm}{\dotfill}& yy & zz \end{matrix}}_\textrm{text text text}$

\end{document}


If you want to underbrace a specific zone in the matrix, you can do it using pstricks-add, that has a psbrace command. The idea is to define the elements you want to join as \Rnodes, then joining these nodes with \pssbrace. Unfortunately, the pdfoption doesn't work here, so hat we have to go the traditional way, latex -> dvi -> ps ->ps2pdf. The parameters used for \psbrace are explained in § 11 of the documentation.

\documentclass[pdf]{article}
\usepackage[utf8]{inputenc}
\usepackage{fourier}
\usepackage{mathtools}

\begin{document}

$\begin{matrix}%{*{9}{c}} aa & \Rnode[ href = -1,vref = -2pt]{B}{bb} & cc & dd & ee &\parbox{1cm}{\dotfill}& \Rnode[ href = 1,vref = -2pt]{Y}{yy} & zz \end{matrix}$
\psset{braceWidth = 0.8pt, braceWidthInner =4pt, braceWidthOuter = 4pt, nodesep =8pt}

• @MasterID: There is a (more complex) solution with pstricks-add that uses nodes. See the update to my answer. – Bernard Jun 22 '14 at 23:59