MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Drawing a vector list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118424] Re: Drawing a vector list
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Wed, 27 Apr 2011 07:24:56 -0400 (EDT)
  • References: <ip8o81$pif$1@smc.vnet.net>

Hauke Reddmann wrote:

> A n00b question - I have a 3D vector list L={{A1,A2},{B1,B2},{C1,C2}...
> where for example A1={1,2,3},A2={4,5,6} and so on. I want to draw
> the vectors A1->A2 etc. LINE has no arrowhead option, ARROW only eats 2D vectors
> and VECTORPLOT3D has yet another unfitting syntax. I could do a hackjob and
> first draw LINE[L] and then make a loop adding little arrowheads at all #2 
> (and I would have to compute their directions too!), 
> but what is the most elegant way to program this without any DO loops?
>
> -- 
> Hauke Reddmann <:-EX8    fc3a501 at uni-hamburg.de
> Leierklang und ein flammendes Inferno grü�en dich
> auf das Allerzärtlichste
>

Maybe you want:

A1 = {0, 0, 0}; A2 = {1, 1, 1};
B1 = {3, -1, 3}; B2 = {2, 2, 2};
C1 = {4, 5, -2}; C2 = {5, 6, 7};
ll = {{A1, A2}, {B1, B2}, {C1, C2}}

Graphics3D[{Arrow/@ll}]
-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: Re: How to Assign Different Kernel To Different Notebook?
  • Next by Date: Re: How to Assign Different Kernel To Different Notebook?
  • Previous by thread: Re: Drawing a vector list
  • Next by thread: Re: Drawing a vector list