Tilted dots in matrix(LaTeX) - help please!

1. Nov 21, 2007

morpheus89

First off, don't know if this is the right section.

I've been given some homework where I should define operations of matrixes in LaTeX.

My problem is that I don't know how to do vertical dots (nor tilted to 45degrees) in the matrix.

A= \begin{pmatrix}
a_{11} & a_{12} & ... & a_{1n} \\
a_{21} & a_{22} & ... & a_{2n} \\
... & ... & & ... \\
a_{m1} & a_{m2} & ... & a_{mn}
\end{pmatrix}

the red dots must be tilted like this:

2. Nov 21, 2007

Avodyne

$$\cdots \vdots \ddots$$

3. Nov 21, 2007

morpheus89

Thank you!

4. Nov 27, 2008

nusyed

use \cdots for horizontal dots, \vdots for vertical dots and \ddots for diagonal dots.