# LaTeX How to do this in Latex?

Tags:
1. Jun 2, 2013

### EngWiPy

Hi everyone,

I have the following matrix:

$$\begin{pmatrix} x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\ x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\ \vdots &\vdots &\ddots &\vdots\\ x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)} \end{pmatrix}$$

Now I need to write beside the matrix like $$\mathbf{x}^{(1)}=$$ on the first row but from outside the matrix, and so on. How can I do that?

2. Jun 2, 2013

### D H

Staff Emeritus
Just on the first row?
$$\begin{matrix} \mathbf{x}^{(1)} = \\ \phantom{x} \\ \phantom{x} \\ \phantom{x} \end{matrix} \begin{pmatrix} x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\ x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\ \vdots &\vdots &\ddots &\vdots\\ x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)} \end{pmatrix}$$

Or every row?

$$\begin{matrix} \mathbf{x}^{(1)} \\ \mathbf{x}^{(2)} \\ \vdots \\ \mathbf{x}^{(M)} \end{matrix} = \begin{pmatrix} x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\ x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\ \vdots &\vdots &\ddots &\vdots\\ x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)} \end{pmatrix}$$

3. Jun 2, 2013

### EngWiPy

Thanks a lot. That is exactly what I wanted. Now I need to do something similar to the columns, and I guess this approach won't work, will it?

4. Jun 4, 2013

### robphy

$$\begin{matrix} \mathbf{x}^{(1)} \\ \mathbf{x}^{(2)} \\ \vdots \\ \mathbf{x}^{(M)} \end{matrix} = \begin{matrix} \begin{matrix} \mathbf{x_0\ \ }&\mathbf{x_1\ \ }&\ \cdots &\mathbf{x_{N-1}}\\ \end{matrix}\\ % \begin{pmatrix} x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\ x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\ \vdots &\vdots &\ddots &\vdots\\ x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)} \end{pmatrix} \end{matrix}$$

5. Jun 5, 2013

Thanks