Interpolate between two dimensional points

조회 수: 5 (최근 30일)
IlPadrino
IlPadrino 2019년 2월 5일
편집: Matt J 2019년 2월 5일
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