Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
point in vector field

Subject: point in vector field

From: tlawren Lawrence

Date: 2 Nov, 2010 14:37:04

Message: 1 of 2

I've searched the forums, but can't seem to find anything about my problem. I'm guessing it is simple, but my Matlab skills are a little rusty.

What I've got... a equally spaced, 3D vector field in the Cartesian coordinate system. I'm storing the x, y, and z components of my vectors in separate 3D matrices.

What I'm wanting to do... specify a point and direction (a non-data point) in the field and then interpolate the field along the line that originates from the point in the specified direction. I guess what I'm trying to do is map my field on some mesh and then evaluate that field along certain points in the mesh.

Does anyone have any advice on how to do this efficiently?

Thanks in advance.

Subject: point in vector field

From: Sean

Date: 2 Nov, 2010 15:02:04

Message: 2 of 2

"tlawren Lawrence" <tlawren300@gmail.com> wrote in message <iap7mg$cmi$1@fred.mathworks.com>...
> I've searched the forums, but can't seem to find anything about my problem. I'm guessing it is simple, but my Matlab skills are a little rusty.
>
> What I've got... a equally spaced, 3D vector field in the Cartesian coordinate system. I'm storing the x, y, and z components of my vectors in separate 3D matrices.
>
> What I'm wanting to do... specify a point and direction (a non-data point) in the field and then interpolate the field along the line that originates from the point in the specified direction. I guess what I'm trying to do is map my field on some mesh and then evaluate that field along certain points in the mesh.
>
> Does anyone have any advice on how to do this efficiently?
>
> Thanks in advance.

I would try:
doc griddata3
as a starting point.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us