How-To: Create custom surface models from scattered MATLAB data

Those wishing to model a surface from data in the form of z(x,y) from scattered or  semi-scattered data have had few options in matlab – mainly griddata.

Griddata is a valuable tool for interpolation of scattered data. However it fails when there are replicates or when the data has many collinear points. Griddata is also unable to extrapolate beyond the convex hull of the data unless the ‘v4’ option is used, which is slow.

Gridfit solves all of these problems, although it is not an interpolant. It builds a surface over a complete lattice, extrapolating smoothly into the corners. You have control of the amount of smoothing done, as well as interpolation methods, which solver to use, etc.

Surface Fitting using gridfit


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s