On Tue, 2008-01-01 at 18:19 +0300, Mansur Marvanov wrote:
> I have 2 matrix 11x1:
>
> (%i1) x:matrix([-3.6],[-3.08],[-2.56],[-2.04],[-1.52],[-1],[-0.48],[0.04],[0.56],[1.08],[1.6])$
>
> (%i2) y:matrix([-2.397],[-0.401],[-0.577],[-1.268],[-0.933],[-0.359],[1.107],[1.300],[1.703],[-0.299],[-1.417])$
>
> What's the easy way to plot this 11 points? My problem is to transform
> this 2 matrices to this style:
>
> (%i12) xx:[10, 20, 30, 40, 50]$
> (%i13) yy:[.6, .9, 1.1, 1.3, 1.4]$
> (%i14) xy:[[10,.6], [20,.9], [30,1.1], [40,1.3], [50,1.4]]$
Wolfgang Lindner has already told you what he thinks is the easiest way.
In my opinion, the easiest way is the following:
(%i3) xx: transpose(x)[1]$
(%i4) yy: transpose(y)[1]$
(%i5) plot2d([discrete,xx,yy],[style,points])$
Regards,
Jaime Villate