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

LaTeX Vertical line in matrix

  1. Feb 23, 2017 #1

    BvU

    User Avatar
    Science Advisor
    Homework Helper
    2017 Award

    Anyone know how to get a vertical line between two columns ? Like here in AMSTeX
     
  2. jcsd
  3. Feb 23, 2017 #2

    BvU

    User Avatar
    Science Advisor
    Homework Helper
    2017 Award

    Never mind, found an alternative:
    Code (LaTeX):

    \left[
    \begin{array}{cccc|c}
    1 & 0 & 3 & -1 & 0 \\
    0 & 1 & 1 & -1 & 0 \\
    0 & 0 & 0 & 0 & 0 \\
    \end{array
    }
    \right
    ]
     
    $$
    \left[
    \begin{array}{cccc|c}
    1 & 0 & 3 & -1 & 0 \\
    0 & 1 & 1 & -1 & 0 \\
    0 & 0 & 0 & 0 & 0 \\
    \end{array}
    \right]
    $$
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted