Latex: Writing "x" Beside a Matrix

  • Context: LaTeX 
  • Thread starter Thread starter EngWiPy
  • Start date Start date
  • Tags Tags
    Latex
EngWiPy
Messages
1,361
Reaction score
61
Hi everyone,

I have the following matrix:

[tex]\begin{pmatrix}<br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\<br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\<br /> \vdots &\vdots &\ddots &\vdots\\<br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)}<br /> \end{pmatrix}[/tex]

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

Thanks in advance
 
Physics news on Phys.org
S_David said:
Hi everyone,

I have the following matrix:

[tex]\begin{pmatrix}<br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\<br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\<br /> \vdots &\vdots &\ddots &\vdots\\<br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)}<br /> \end{pmatrix}[/tex]

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

Thanks in advance

Just on the first row?
[tex] \begin{matrix}<br /> \mathbf{x}^{(1)} = \\ \phantom{x} \\ \phantom{x} \\ \phantom{x} <br /> \end{matrix}<br /> <br /> \begin{pmatrix}<br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\<br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\<br /> \vdots &\vdots &\ddots &\vdots\\<br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)}<br /> \end{pmatrix}[/tex]

Or every row?


[tex] \begin{matrix}<br /> \mathbf{x}^{(1)} \\ \mathbf{x}^{(2)} \\ \vdots \\ \mathbf{x}^{(M)}<br /> \end{matrix}<br /> =<br /> \begin{pmatrix}<br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\<br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\<br /> \vdots &\vdots &\ddots &\vdots\\<br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)}<br /> \end{pmatrix}[/tex]
 
D H said:
Just on the first row?
[tex] \begin{matrix}<br /> \mathbf{x}^{(1)} = \\ \phantom{x} \\ \phantom{x} \\ \phantom{x} <br /> \end{matrix}<br /> <br /> \begin{pmatrix}<br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\<br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\<br /> \vdots &\vdots &\ddots &\vdots\\<br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)}<br /> \end{pmatrix}[/tex]

Or every row?


[tex] \begin{matrix}<br /> \mathbf{x}^{(1)} \\ \mathbf{x}^{(2)} \\ \vdots \\ \mathbf{x}^{(M)}<br /> \end{matrix}<br /> =<br /> \begin{pmatrix}<br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\<br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\<br /> \vdots &\vdots &\ddots &\vdots\\<br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)}<br /> \end{pmatrix}[/tex]

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?
 
[tex]\begin{matrix} <br /> \mathbf{x}^{(1)} \\ \mathbf{x}^{(2)} \\ \vdots \\ \mathbf{x}^{(M)} <br /> \end{matrix} <br /> = <br /> \begin{matrix}<br /> \begin{matrix}<br /> \mathbf{x_0\ \ }&\mathbf{x_1\ \ }&\ \cdots &\mathbf{x_{N-1}}\\ <br /> \end{matrix}\\<br /> %<br /> \begin{pmatrix} <br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\ <br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\ <br /> \vdots &\vdots &\ddots &\vdots\\ <br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)} <br /> \end{pmatrix}<br /> \end{matrix}[/tex]
 
robphy said:
[tex]\begin{matrix} <br /> \mathbf{x}^{(1)} \\ \mathbf{x}^{(2)} \\ \vdots \\ \mathbf{x}^{(M)} <br /> \end{matrix} <br /> = <br /> \begin{matrix}<br /> \begin{matrix}<br /> \mathbf{x_0\ \ }&\mathbf{x_1\ \ }&\ \cdots &\mathbf{x_{N-1}}\\ <br /> \end{matrix}\\<br /> %<br /> \begin{pmatrix} <br /> x_0^{(1)}&x_1^{(1)}&\cdots &x_{N-1}^{(1)}\\ <br /> x_0^{(2)}&x_1^{(2)}&\cdots &x_{N-1}^{(2)}\\ <br /> \vdots &\vdots &\ddots &\vdots\\ <br /> x_0^{(M)}&x_1^{(M)}&\cdots &x_{N-1}^{(M)} <br /> \end{pmatrix}<br /> \end{matrix}[/tex]

Thanks
 

Similar threads

Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 52 ·
2
Replies
52
Views
4K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K