Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'List manipulation' topicStudent Support Forum > General > "List manipulation"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
jf
12/30/12 5:24pm

Thread or MapThread.

In[5]:= l1={{2011,11,16},{2011,11,17},{2011,11,18},{2011,11,21}} ;
l2={{8.98,8.98,8.75,8.9},{8.8,9.45,8.8,9.24},{9.17,10.07,9.16,10.05},{9.9,10.25,9.79,10.04}};

In[6]:= Thread[List[l1,l2]]
Out[6]= {{{2011,11,16},{8.98,8.98,8.75,8.9}},
{{2011,11,17},{8.8,9.45,8.8,9.24}},
{{2011,11,18},{9.17,10.07,9.16,10.05}},
{{2011,11,21},{9.9,10.25,9.79,10.04}}}

URL: ,

Subject (listing for 'List manipulation')
Author Date Posted
List manipulation Augustus 12/29/12 11:26am
Re: List manipulation jf 12/30/12 5:24pm
Re: List manipulation Augustus 12/31/12 11:31am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic