Interpolate between two dimensional points

5 次查看(过去 30 天)
Hi Guys,
i need some help with a problem i have.
Ich have a point cloud. All Points are two dimensional and therefore have an x and y value. Each Point in this cloud define a x and y error.
Now i have a new 2d point which is soomwhere in this point cloud and from which i want to interpolate the x and y error.
How can i do this ?
My idea was to find the two nearest Points from the point cloud to this new point but i m not sure how to do this. Is there any possibility to do this with Matlab ? Or isn't it better to use 4 points around that point to interpolate the error ?
Thanks in advance for your help.

采纳的回答

Matt J
Matt J 2019-2-5
编辑:Matt J 2019-2-5
One way is to use scatteredInterpolant
F=scatteredInterpolant(x,y,Error);
newError=F(newpoint);
This is the most efficient if you need to reuse F multiple times, but you could also use griddata.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Point Cloud Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by