Surf plot scattered data with interpolation


Updated 7 Jun 2015

View License

Matlab provides triplot that uses Delaunay Triangulation to plot surfaces from scattered data. Matlab also provides scatteredInterpolant to interpolate from scattered data onto a regular grid, but sometimes all you want is to interpolate within the scattered data you already have.
This function uses Delaunay Triangulation to interpolate within scattered data and plot the results. (Scattered data is any data in X, Y, and Z vector form, and that doesn't need uniform spacing on an XY grid.) This function is useful whenever you have coarse data for which a coloured surface plot shows artifacts, even with interpolated shading. The example file demonstrates a few examples of the intended use of this function.

Cite As

Will Robertson (2023). delaunay_surf (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
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