I am new to Latex, and I have been trying to get the matrix of following form

```
[x11 x12 x13 . . . . x1n
x21 x22 x23 . . . . x2n
.
.
.
.
xd1 xd2 xd3 . . . . xdn]
```

Where the letters accompanying the elements are subscripts '11 12 13' etc. I tried it in the following fashion

```
$$
\begin{bmatrix}
x_{11}&x_{12}&x_{13}&.&.&.&.&x_{1n}
```

And so on in similar fashion. I get errors when I use the above method and I know its amateurish. Can you please tell me how to get it done the right way? I even tried including '\' for the periods. Thanks in advance.

## Best Answer

You must read at least lshort (page 58) or amsldoc.pdf Section 4 (page 12).