通过查找matlab的帮助程序,对离散数据格网化采用的方法有如下5种:
griddata(..., METHOD) where METHOD is one of
'nearest' - Nearest neighbor interpolation
'linear' - Linear interpolation (default)
'natural' - Natural neighbor interpolation
'cubic' - Cubic interpolation (2D only)
'v4' - MATLAB 4 griddata method (2D only)
本文主要对cubic的实现原理进行介绍。
根据matlab的帮助说明:
defines the interpolation method. The 'nearest' and 'linear' methods
have discontinuities in the zero-th and first derivatives respectively,
while the 'cubic' and 'v4' methods produce smooth surfaces. All the
methods except 'v4' are based on a Delaunay triangulation of the data.
意思是说除了‘v4’方法,其他的方法都是基于Delaunary三角形的,所以,cubic方法也不例外。因此matlab中cubic方法就是基于Delaunary的三次方程插值。
步骤