Mathematica 9 is now available
Student Support Forum
Student Support Forum > General > > "Extract numbers from list"

Post Reply:
Email Address:

Please send email when my message is replied to.

Url (optional):
Message: view original message?
Attachment (optional):
Please answer this:1+2 =

Original Message (ID '79439') By Peter Pein:
Hi, there are several ways to achieve this. Here are some of them: In[1]:= mylist = {{x, y}, {c, v}}; In[2]:= mylist[[All, 1]] Out[2]= {x, c} In[3]:= First[Transpose[mylist]] Out[3]= {x, c} In[4]:= First /@ mylist Out[4]= {x, c} In[5]:= mylist /. {a_?AtomQ, ___} :> a Out[5]= {x, c} Peter