A much easier way would be to use the augment() function.
Say you had column vectors w, x, y, and z, then you can place them side-by-side into an array with the command:
A:augment(w,x,y,z)
(the : symbol places the = assignment operator there)
Then just writeprn(filename):A as before.
You...