main.m668 chars19 lines
This code snippet shows how to use scatteredInterpolant in MATLAB to interpolate survey data onto a grid using linear interpolation. The survey_data contains the survey points (x, y, z), and then a grid is created using linspace along the x and y directions. The scatteredInterpolant function is used to interpolate the survey data onto the grid points, and then the interpolated data is plotted using surf.
gistlibby LogSnag