Hello. How to convert two lists like these: a={2,3,4,5} b={4,5,6,7} to a set of data like this: data={{2,4},{3,5},{4,6},{5,7}} How to do this? :/ thanks.
Last edited by rousfv; January 3rd 2011 at 12:14 AM.
Follow Math Help Forum on Facebook and Google+
If you've already assigned the variables a and b, try this command: Code: Thread[a,b] Otherwise, go with Code: Thread[{2,3,4,5},{4,5,6,7}] Cheers.
Thread[a,b]
Thread[{2,3,4,5},{4,5,6,7}]
Originally Posted by Ackbeet If you've already assigned the variables a and b, try this command: Code: Thread[a,b] Otherwise, go with Code: Thread[{2,3,4,5},{4,5,6,7}] Cheers. Thanks for mentioning "Thread"!! I had to add a pair of brackets Thread[{a,b}]
Yeah, you're right. You'd have to include those. Anyway. You're welcome. Have a good one!
View Tag Cloud