       Fw: ListPlot with row vectors

• To: mathgroup at smc.vnet.net
• Subject: [mg28581] Fw: [mg28500] ListPlot with row vectors
• From: "Mark Harder" <harderm at ucs.orst.edu>
• Date: Sat, 28 Apr 2001 21:36:06 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Nicola,

In:=
ClearAll[A];
A = {{x1, x2, x3, x4, x5}, {y1, y2, y3, y4, y5}};
Dimensions[A]
Transpose[A]
Dimensions[%]

Out=
{2, 5}

Out=
{{x1, y1}, {x2, y2}, {x3, y3}, {x4, y4}, {x5, y5}}

Out=
{5, 2}

-mark harder

-----Original Message-----
From: Nicola <pasquino at seas.upenn.edu>
To: mathgroup at smc.vnet.net
Subject: [mg28581] [mg28500] ListPlot with row vectors

>I have 2xN matrix whose column vectors are points in the cartesian plane. I
>would like to plot these points, and therefore I assumed that ListPlot
would
>do the job. But I realized that ListPlot only plots a one row vector
against
>integer numbers, or at the most a list of points in the form
>{{x1,y1},{x2,y2},{}...}
>The problem is that I have the points in the form
>A={{x1,x2,x3,x4,x5,x6...},{y1,y2,y3,y4,y5}}.
>How can I turn my matrix into a form that Mathematica can use, so to plot
>the points on the plane?
>
>One more questions, if you don't mind. How can I have the starting matrix A
>contain only unique points? In other words, there should be no repetitions
>of the same point in the matrix.
>