Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX How to do this in Latex?

Tags:
  1. Jun 2, 2013 #1
    Hi everyone,

    I have the following matrix:

    [tex]\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}
    [/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
     
  2. jcsd
  3. Jun 2, 2013 #2

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    Just on the first row?
    [tex]
    \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}
    [/tex]

    Or every row?


    [tex]
    \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}
    [/tex]
     
  4. Jun 2, 2013 #3
    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?
     
  5. Jun 4, 2013 #4

    robphy

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    [tex]\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}
    [/tex]
     
  6. Jun 5, 2013 #5
    Thanks
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook




Loading...