Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re:Help: Column/Row Vector

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4323] Re:[mg4253] Help: Column/Row Vector
  • From: "Edward G. Neuman" <edneuman at math.siu.edu>
  • Date: Tue, 9 Jul 1996 00:50:52 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Khinast wrote:

>Hi,
>
>I have two vectors x=(x1,x2) and y = (y1,y1). How can I persuade Mathematica
>that e.g. x is a column vector and y is a row vector, which is kind of 
>important for their multiplication .
>I've studied the help page for hours, with no result. So could  
>someone please help me. My email address is: 
>
>khinast at nld.chee.uh.edu
>
>
>Joh.

Denote by xc and yr the column and row versions of x and y, respectively.
You can execute the following lines:

x={x1,x2}; y={y1,y2};
xc=Partition[x,1]
{{x1}, {x2}}
yr=List[y]
{{y1, y2}}
Dimensions[xc]
{2, 1}
Dimensions[yr]
{1, 2}

to obtain the desired result.




===============================================================================
 Edward Neuman                    Phone: (618) 453-6501
 Department of Mathematics        Fax:   (618) 453-5300
 Southern Illinois University     E-mail: edneuman at math.siu.edu
 Carbondale,  Ill. 62901-4408     
 WWW: http://www.science.siu.edu/mathematics/neuman/ 


==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Help: Column/Row Vector
  • Next by Date: Re: Plot and colors
  • Previous by thread: Re: Help: Column/Row Vector
  • Next by thread: Re: Help: Column/Row Vector