Interpolation of values on a three-dimensional surface represented by points

2 views (last 30 days)
Hey Hi.. I needed some help in interpolation of data. Basically I have 3D surface coordinates (x,y,z) let say it is around 20000 and from some of this points i have a voltage value (just for 400 points) So, I want to find the voltage value for remaining points. So what should i do?

Accepted Answer

Walter Roberson
Walter Roberson on 10 Feb 2016
Vq = scatteredInterpolant(voltage_x, voltage_y, voltage_z, voltages);
interpolated_voltages = Vq(surface_x, surface_y, surface_z);
where voltage_[xyz] are the locations of the places you have recorded voltages for, and surface_[xyz] are the locations of the points you want to interpolate at.
Your bigger problem is displaying the result, a task which is made easier if the sampling points form a grid.
  2 Comments
Ronak Patel
Ronak Patel on 10 Feb 2016
Thanks for your answer. the problem is I have voltage as a scaler quantity and that is i have just for few points.so dimension is also a problem
Walter Roberson
Walter Roberson on 10 Feb 2016
Your original question indicates you have about 400 voltage values. Put those together in a vector "voltages" and use the code I show above.

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!