Re: Creating Matrix from vectors

*To*: mathgroup at smc.vnet.net*Subject*: [mg100702] Re: [mg100691] Creating Matrix from vectors*From*: Adriano Pascoletti <adriano.pascoletti at dimi.uniud.it>*Date*: Thu, 11 Jun 2009 21:39:58 -0400 (EDT)*References*: <200906111108.HAA21218@smc.vnet.net>

Just add Transpose. For instance In[1]:= s1 = {1, 3, 2}; s2 = {10, 20, 30}; A = Transpose[{s1, s2}] Out[1]= {{1, 10}, {3, 20}, {2, 30}} This is a 3 by 2 matrix: evaluate MatrixForm[A] to see it in the usual form. Adriano Pascoletti 2009/6/11 Kinu <basukinjal at gmail.com> > Suppose i have a n number of vectors say s1, s2,... sn. I want to > create a matrix such that these n vectors are the n columns of the matrix. > I tried using A = {s1,s2,..,sn}; > however this keep the vectors intact and stacks them one below the > other. How can i make a matrix from these?? > Can anyone please help me with this. > >

**References**:**Creating Matrix from vectors***From:*Kinu <basukinjal@gmail.com>