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

Mathematica plotting help

  1. Jul 14, 2010 #1
    I have some data I imported into Mathematica. It has three columns. I want to plot col1 vs. col2, col2 vs. col3, and col1 vs. col3.

    I started out doing this

    Flatten[Partition[data, 3]]

    to get one long list. I'm kind of lost. Any help is appreciated!
  2. jcsd
  3. Jul 14, 2010 #2
    Nevermind, I figured out you could do this almost immediately after posting that

    column1 = Table[data[[i, 1]], {i, 1, Length[data]}]
  4. Jul 14, 2010 #3


    Staff: Mentor

    A shortcut for that is:
    column1 = data[[All,1]]
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook