Help with Mathematica Code: Matching Two Lists

  • Context: Mathematica 
  • Thread starter Thread starter umangdighe
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around coding in Mathematica to match two lists: one representing time values and the other representing corresponding temperature values. Participants are exploring how to structure these lists for further calculations.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant describes the need to correspond values from two lists, t (time) and T (temperature), indicating that T1 corresponds to t1.
  • Another participant suggests that tn corresponds to Tn for n=1,2,3,4....
  • A different participant proposes combining the two lists into a single 2D list, referred to as Data, where time and temperature values can be accessed using specific indexing.
  • One participant requests additional help and provides a link to a related thread for further context.

Areas of Agreement / Disagreement

Participants are exploring different approaches to the problem, and no consensus has been reached regarding the best method to implement the solution in Mathematica.

Contextual Notes

The discussion does not clarify any assumptions about the structure of the lists or the specific operations intended beyond matching the values.

umangdighe
Messages
3
Reaction score
0
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
 
Physics news on Phys.org
tn=Tn where n=1,2,3,4......
 
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?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
11
Views
2K