Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7741

Re: Plotting an Array of Vectors

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Plotting an Array of Vectors
Date 2012-01-11 09:26 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jejkk3$bav$1@smc.vnet.net> (permalink)
References <201201101059.FAA27817@smc.vnet.net>

Show all headers | View raw


Does the following give what you want -- albeit for a smaller example?

   (* create a 4-by-4 array of two-dimensional vectors *)
   vecs = Partition[Partition[RandomInteger[{-5, 5}, 32], 2], 4];

   ListVectorPlot[vecs]

On 1/10/12 5:59 AM, Peter Rodenbach wrote:
> Hi everyone.
>
> I wan to plot an 50 x 50 array that has two dimensional vectors in it
> like
> {{3,3},{3,2},{3,4},{2,3}.....},{{3,4},...},...
>
> in a way that it looks like a bunch of compass needles. (Remember that
> High School experiment in which you visualise the magnetic field?)

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Plotting an Array of Vectors Murray Eisenberg <murray@math.umass.edu> - 2012-01-11 09:26 +0000

csiph-web