Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'using only first elements of list of lists' topicStudent Support Forum > General > "using only first elements of list of lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
Patrik Hudec
10/02/06 3:12pm

Good day. I want to ask for help.

Have we:
ListA = { {1,1} , {2,1} , {3,1} }
ListB = { 3, 4, 5 }

I need to work only with the first elements of each element in ListA, that means:
ListA[[1,1]], ListA[[2,1]], ListA[[3,1]]

for example:
How can I easy write, that I want ListA[[x,1]] - ListB, for x = 1 to Length[ListA]?

Thanks you a lot for helping me, Patrik

URL: ,

Subject (listing for 'using only first elements of list of lists')
Author Date Posted
using only first elements of list of lists Patrik Hudec 10/02/06 3:12pm
Re: using only first elements of list of lists Peter Pein 10/04/06 10:43am
Re: using only first elements of list of lists yehuda ben-s... 10/04/06 2:42pm
Next Comment >Help | Reply To Topic