I have two lists of x and y values. How can I combine them so that I get the following:
x={x1,x2,x3,x4,x5}
y={y1,y2,y3,y4,y5}
mylist={{x1,y1},{x2,y2},{x3,y3},{x4,y4},{x5,y5}}
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communitythis is a repeat of another question, but the answer is:
mylist = Transpose @ {x,y}