MATLAB: How to extrapolate data

digital image processingdigital signal processingimage processingmathematicsMATLAB

Hello, I have coordinates of (x,y) . I have also the coordinates of the points where the values of (x,y) have to extrapolate. If x=[1,2,2,5,6] and y=[3,4,6,2,6] are the coordinates. The data of (x,y) are given by d=[2.5,4,3.8,1.22,7.1] then how to extrapolate the values in the coordinates (X,Y) if X=[8,8,7,9] and Y=[5,6,4,7].
Please Help

Best Answer

F = scatteredInterpolant(x(:), y(:), d(:));
interpolated_d = F(X, Y);