| Author |
Comment/Response |
andrew shaw
|
12/14/04 06:55am
If you have two lists, for example the lists temp and press, how do you combine these to get the correct form for a list plot? I cannot combine them correctly i.e. the first point should be {0.01, 0.006112}, second {5, 0.008719},
the lists are
temp = Insert[Table[x, {x, 5, 110, 5}], 0.01, 1]
Which gives {0.01, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110}
press = {0.006112, 0.008719, 0.01227, 0.01704, 0.02337, 0.03166, 0.04242, 0.05622, 0.07375, 0.09582, 0.1233, 0.1574, 0.1992, 0.2501, 0.3116, 0.3855, 0.4736, 0.5780, 0.7011, 0.8453, 1.01325, 1.208, 1.433}
The only combination I can achieve is
Table[{temp, press}]
which is the wrong form. Other than that I did think about using the following method
Table[{{temp[[1]], press[[1]]}, {temp[[2]], press[[2]]}}]
which would work but there must be a better way!
URL: , |
|