From: S O on
I am trying to use a few vectors (between 2 and 36) to generate an estimate of the entire vector field in 2D. That is I have the vector magnitude, direction & origin of several vectors and I would like to generate the entire 2D vector field. Any examples or ideas on how to get this done?
From: Lorenzo Guerrasio on
you should bin your vectors according their origin and then compute the mean vector. You might want to use values of neighbour bins to fill empty bins.

"S O" <sjo2008(a)gmail.com> wrote in message <hl47tg$ok1$1(a)fred.mathworks.com>...
> I am trying to use a few vectors (between 2 and 36) to generate an estimate of the entire vector field in 2D. That is I have the vector magnitude, direction & origin of several vectors and I would like to generate the entire 2D vector field. Any examples or ideas on how to get this done?
From: S O on
I only have a few vectors to begin with so I cannot simply take a tally. I need to extrapolate a "possible vector field" given only a very few vectors (i.e about 16 each with different origins). I do however know that the vector field only rotates once about a point & shifts once linearly. That is it rotates and shifts once.

Another way to think of it is that the entire field is fixed with respect to itself but rotates about a moving point.

"Lorenzo Guerrasio" <lorenzo.guerrasio(a)email.it> wrote in message <hl4911$7md$1(a)fred.mathworks.com>...
> you should bin your vectors according their origin and then compute the mean vector. You might want to use values of neighbour bins to fill empty bins.
>
> "S O" <sjo2008(a)gmail.com> wrote in message <hl47tg$ok1$1(a)fred.mathworks.com>...
> > I am trying to use a few vectors (between 2 and 36) to generate an estimate of the entire vector field in 2D. That is I have the vector magnitude, direction & origin of several vectors and I would like to generate the entire 2D vector field. Any examples or ideas on how to get this done?
From: Steven Lord on

"S O" <sjo2008(a)gmail.com> wrote in message
news:hlf9ia$iqj$1(a)fred.mathworks.com...
>I am trying to write a code that has the following input output
>capabilities. I want to input (a few vectors & their origins) and output
>(a vector field expression).
> For example, input vector & origin pairs:
> <0,4> at (-2,-2)
> <-4,-4> at (-2,2)
> <4,-4> at (2,-2)
> <0,4> at (2,2)
> <0,0> at (0,0)
> <0,2> at (-2,0)
> <0,-2> at (2,0)
> <2,0> at (2,0)
> <-2,0> at (2,0)
>
> And output a vector field:
>
> F=<x-y,x*y>
>
> Is this possible?

What is your desired output? Do you want a graph of the vectors? If so,
look at QUIVER.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: S O on
I am trying to write a code that has the following input output capabilities. I want to input (a few vectors & their origins) and output (a vector field expression).

For example, input vector & origin pairs:
<0,4> at (-2,-2)
<-4,-4> at (-2,2)
<4,-4> at (2,-2)
<0,4> at (2,2)
<0,0> at (0,0)
<0,2> at (-2,0)
<0,-2> at (2,0)
<2,0> at (2,0)
<-2,0> at (2,0)

And output a vector field:

F=<x-y,x*y>

Is this possible?