More Arrows in a plot

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

More Arrows in a plot

ivans1984
Hello

i'm a newbie user of octave

i'd like to plot 3 vectors in R3 space using command quiver3

i put commands into a script like this

quiver3(0,0,0,x1,y1,z1)
quiver3(0,0,0,x2,y2,z2)
quiver3(0,0,0,x3,y3,z3)

where the vectors are v1=[x1 y1 z1]
v2 = [x2 y2 z2]
v3 = [x3 y3 z3]

if i run the script i see only 1 arrow plotted, instead of 3.

can you tell where is the mistake?

thanks!
Reply | Threaded
Open this post in threaded view
|

Re: More Arrows in a plot

ivans1984
I used command "hold on" and it works!
Reply | Threaded
Open this post in threaded view
|

Re: More Arrows in a plot

c.-2
In reply to this post by ivans1984

On 19 Nov 2012, at 15:30, ivans1984 wrote:

> i put commands into a script like this
>
> quiver3(0,0,0,x1,y1,z1)
> quiver3(0,0,0,x2,y2,z2)
> quiver3(0,0,0,x3,y3,z3)

quiver3 ([0, 0, 0], [0, 0, 0], [0, 0, 0], [x1, x2, x3], [y1, y2, y3], [z1, z2, z3]);

HTH,
c.
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave