MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Creating Matrix from vectors


If I understand correctly, you should just Transpose the matrix:

s1 = {a, b, c}; s2 = {d, e, f}; s3 = {g, h, i};


A = Transpose[{s1, s2, s3}]

A // MatrixForm







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.
>
>


-- 
Por favor eviten enviarme archivos adjuntos de Word o Powerpoint (
http://www.gnu.org/philosophy/no-word-attachments.es.html )



  • Prev by Date: Re: Creating Matrix from vectors
  • Next by Date: Re: Creating Matrix from vectors
  • Previous by thread: Re: Creating Matrix from vectors
  • Next by thread: Re: Creating Matrix from vectors