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

Mathematica help

  1. Sep 29, 2010 #1
    Hi guys,

    I am writing a code for mathematica...

    I have two lists for t(time) and T(temperature) such that t=(t1,t2,t3......tn) and T=(T1,T2,T3,T4,T5....Tn)
    I have a formula that needs me to correspond the values in the two lists...which means.... T1 is the value recorded at t1....

    any suggestions ?


    thanks
     
  2. jcsd
  3. Sep 29, 2010 #2
    tn=Tn where n=1,2,3,4...........................
     
  4. Sep 30, 2010 #3

    phyzguy

    User Avatar
    Science Advisor

    Put them together into a single 2D list, i.e.
    Data={t,T}

    Then tn will be Data[[ 1,n]] , and Tn will be Data[[2,n]] .

    Is this what you're trying to do?
     
  5. Oct 3, 2010 #4
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook