help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple 3-D plotting


From: Robert A. Macy
Subject: Re: Simple 3-D plotting
Date: Sat, 26 Aug 2006 07:13:49 -0700

Systems that don't have plot3?

I'm running antique 2.1.50a-inst.exe and it's here and does
exactly what Tony wants.

Don, clever.

Thanks for mentining plot3.  Many years of using octave and
didn't even know it existed.

           - Robert -

On Sat, 26 Aug 2006 08:43:36 -0500
 Donald J Bindner <address@hidden> wrote:
> On Sat, Aug 26, 2006 at 09:43:54AM +0200, Miroslaw
> Kwasniak wrote:
> > On Fri, Aug 25, 2006 at 05:29:42PM -0400, Tony
> Fernandez wrote:
> > > Hello all,
> > > I am trying to plot, say, 5 points in a three
> dimensional space, and connect
> > > these points with segments between each consecutive
> point.  This will give
> > > me only four segments. From point1 to point2, them
> from point2 to point3,
> > > and so on.
> > > Points are: ( x1, y1, z1 ), ( x2, y2, z2 ), ., ( x5,
> y5, z5 ) 
> > > How can I draw/plot these four segments without
> ending up with a mesh?
> > 
> > plot3(x,y,z) 
> > 
> > where x,y,z are vectors with length =  5
> 
> On a system without plot3() you can also get by with
> something
> like this:
> 
> octave:1> x = [0:.1:1]; y = x.^2; z = sqrt(x);
> octave:2> xx = [x;x]; yy = [y;y]; zz = [z;z];
> octave:3> mesh(xx,yy,zz)
> 
> You effectively draw the curve twice.
> 
> -- 
> Don Bindner <address@hidden>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]