Question: Further help with converting matrix with zip function

Last week I asked about manipulating a Matrix into the form:

pts := [[x1,y1],[x2,y2]...[xn,yn]]

I was directed to use the zip function, which after some trial and error I have "successfully" done. The problem I am having (I think) is that I am using Maple9. Using the zip function as in the example:

> zip(`[]`,[1,2,3] ,[4,5,6]);

                           [[1, 4], [2, 5], [3, 6]]
I get as output (as opposed to what's above):

               [[](1,4),[](2,5),[](3,6)]

Therefore, my program will not work since I need the output in the format above. I can get the below output with some manipulation of the zip function:

pts:=[(x1,y1),(x2,y2)...(xn,yn)]

but that won't work. Does anyone know how to create an "array" of the format I need using Maple9? Any help will be greatly appreciated.

 

Please Wait...