griddata_edge

Version 1.0.1 (2.71 KB) by btmy87
scattered interpolation using linear interpolant inside the domain and extrapolating with the nearest point on the edge of the domain.
75 Downloads
Updated 24 Mar 2024

View License

Performs linear interpolation on a scattered dataset within the convex hull of the dataset. Extrapolates by holding the nearest point on the edge of the convex hull. Avoiding the discontinuity at the convex hull that occurs when calling the scatteredInterpolant function with "linear" interpolation and "nearest" extrapolation options.
As always, consider scaling the input coordinates if appropriate.
As of R2024a, use scatteredInterpolant with "boundary" as the extrapolation option. This submission may still be helpful if you need this behavior in earlier versions of MatLab.

Cite As

btmy87 (2024). griddata_edge (https://www.mathworks.com/matlabcentral/fileexchange/108959-griddata_edge), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.1

Updated description. As of R2024a, use scatteredInterpolant with "boundary" as the extrapolation option.

1.0.0