Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Creating Matrix from vectors

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100742] Re: Creating Matrix from vectors
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Fri, 12 Jun 2009 05:45:50 -0400 (EDT)

On 6/11/09 at 7:08 AM, basukinjal at gmail.com (Kinu) wrote:

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

Use Transpose. That is, A = Transpose@{s1,s2,..,sn}; will be what you want.



  • Prev by Date: Re: Correction to "Fundamental Theorem of Calculus and Mathematica"
  • Next by Date: Re: Locator as a button
  • Previous by thread: Re: Creating Matrix from vectors
  • Next by thread: Getting histogram information