The function makes use of the inbuilt interp1 function to perform 2D extrapolation on a given data set. The input to the function is in the same format as required by interp2.
eg. Zi = interpextrap2(X,Y,Z,Xi,Yi).
Only it does not take "method" input. Method is 'cubic' by default. But the 'method' can be changed by editing the function.
Nachiket (2021). 2D Extrapolation (https://www.mathworks.com/matlabcentral/fileexchange/32436-2d-extrapolation), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!