Prev: Input a few vectors in order to generate a "Vector Field"
Next: Minimizing an Integral function
From: S O on 12 Feb 2010 13:50 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 12 Feb 2010 14:09 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 12 Feb 2010 14:43 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 16 Feb 2010 22:39 "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 16 Feb 2010 18:26 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?
|
Next
|
Last
Pages: 1 2 Prev: Input a few vectors in order to generate a "Vector Field" Next: Minimizing an Integral function |