# Produce matrix with labels underneath

Sorry if this has been asked before, I am trying to produce a matrix that appears as in the linked image. In particular, I am wondering how to get the labels on the top and bottom of the matrices, as well as the dots indicating continuation in the matrix contents

-
With all respect, if you google for singular value decomposition, you will find out that nobody types out these matrices as such since being a unitary matrix cannot be depicted visually. However you can also use \underbrace{\begin{pmatrix}...\end{pmatrix} }_{V_T} to distinguish different elements. You can try partitioning U,S,V matrices and show the reduced SVD with those partitioned matrices. –  percusse Jun 3 '12 at 21:17
You will probably find some help here or here –  Scott H. Jun 3 '12 at 21:19
–  Torbjørn T. Jun 3 '12 at 21:19
The dots are entered as the contents of a cell with \vdots for vertical dots, \cdots for centred dots, and \ddots for diagonal dots. –  Scott H. Jun 3 '12 at 21:29

If not closed, then this might as well have an answer. Here are a few ways of producing, for example, the second matrix above:

\documentclass{article}
\usepackage{blkarray}
\usepackage{amsmath}
\begin{document}
$\begin{blockarray}{ccc} & U &\\ \begin{block}{[ccc]} u_{1,1} & \cdots & u_{1,r}\\ \vdots & \ddots & \vdots\\ u_{m,1} & \cdots & u_{m,r}\\ \end{block} & m\times r& \\ \end{blockarray}$
$\begin{array}{c} U\\ \left[\begin{array}{ccc} u_{1,1} & \cdots & u_{1,r}\\ \vdots & \ddots & \vdots\\ u_{m,1} & \cdots & u_{m,r}\\ \end{array}\right]\\ m\times r \end{array}$
$\begin{array}{c} U\\ \begin{bmatrix} u_{1,1} & \cdots & u_{1,r}\\ \vdots & \ddots & \vdots\\ u_{m,1} & \cdots & u_{m,r}\\ \end{bmatrix}\\ m\times r \end{array}$


Which give, respectively:

To my eye, the third option produces the best spacing. However, the second two methods work only by virtue of the underset and overset text being in the center column. If it were in a different column, then the first method might be modified to give better spacing, or one of the answers linked in the comments might be preferable.

-