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.
Will Robertson (2022). delaunay_surf (https://www.mathworks.com/matlabcentral/fileexchange/51117-delaunay_surf), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!