griddata_edge

scattered interpolation using linear interpolant inside the domain and extrapolating with the nearest point on the edge of the domain.

You are now following this Submission

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 (2026). griddata_edge (https://au.mathworks.com/matlabcentral/fileexchange/108959-griddata_edge), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

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

1.0.0