help-octave
[Top][All Lists]
Advanced

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

Re: Plotting 3D vectors


From: Etienne Grossmann
Subject: Re: Plotting 3D vectors
Date: Sun, 14 Aug 2005 13:38:55 -0400
User-agent: Mutt/1.4.2.1i


  Sorry,

you probably will need cvs octave-forge for vrml_browse to work correctly.


On Sun, Aug 14, 2005 at 01:06:42PM -0400, Etienne Grossmann wrote:
# 
# 
# Hi Gad,
# 
# this also works
# 
#  Z=[0;0;0]; A = randn(3,1); B = randn(3,1); N = cross (A,B); 
#  vrml_browse ([vrml_cyl([Z,A],"arrow","col",[1 0 
0]),vrml_cyl([Z,B],"arrow","col",[0 1 0]),vrml_cyl([Z,N],"arrow")])
# 
# If you have octave-forge and freewrl (there's @ least a Debian
# package).
# 
#   Hth,
# 
#   Etienne
# 
# On Wed, Aug 03, 2005 at 11:42:25PM +1000, Gad Abraham wrote:
# # Hi,
# # 
# # Is it possible to plot vectors in 3D?
# # 
# # I'm trying to visualise some 3D vectors, e.g.:
# # 
# # A = [1;2;3]
# # B = [5,4,6]
# # AB = A - B
# # N = cross(A, B)
# # 
# # I'd like to put dots at points A and B, and then plot the vector AB with 
# # an arrow and the normal N with an arrow.
# # 
# # Thanks,
# # Gad
# # -- 
# # http://yallara.cs.rmit.edu.au/~gabraham
# # http://chookies.homeunix.org
# # 
# # 
# # 
# # -------------------------------------------------------------
# # Octave is freely available under the terms of the GNU GPL.
# # 
# # Octave's home on the web:  http://www.octave.org
# # How to fund new projects:  http://www.octave.org/funding.html
# # Subscription information:  http://www.octave.org/archive.html
# # -------------------------------------------------------------
# # 
# 
# -- 
# Etienne Grossmann ------ http://www.cs.uky.edu/~etienne

-- 
Etienne Grossmann ------ http://www.cs.uky.edu/~etienne



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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