Main Content




平滑是一种减少数据集中噪声的方法。Curve Fitting Toolbox™ 允许您使用移动平均值、萨维茨基-戈雷滤波器和 Lowess 模型等方法或通过拟合平滑样条来对数据进行平滑处理。

使用曲线拟合器或在命令行中使用 smooth 函数以交互方式对数据进行平滑处理。有关如何对数据进行平滑处理的示例,请参阅Fit Smooth Surfaces to Investigate Fuel Efficiency




datastatsData statistics
excludedataExclude data from fit
fittypeFit type for curve and surface fitting
fitoptionsCreate or modify fit options object
getGet fit options structure property names and values
setAssign values in fit options structure
prepareCurveData Prepare data inputs for curve fitting
prepareSurfaceDataPrepare data inputs for surface fitting


  • Smoothing Splines

    Fit smoothing splines in the Curve Fitter app or with the fit function to create a smooth curve through data and specify the smoothness.

  • Lowess Smoothing

    Fit smooth surfaces to your data in the Curve Fitter app or with the fit function using Lowess models.

  • Filtering and Smoothing Data

    Use the smooth function to smooth response data, using methods for moving average, Savitzky-Golay filters, and local regression with and without weights and robustness (lowess, loess, rlowess and rloess).

  • Fit Smooth Surfaces to Investigate Fuel Efficiency

    This example shows how to use Curve Fitting Toolbox™ to fit a response surface to some automotive data to investigate fuel efficiency.

  • Nonparametric Fitting

    Perform nonparametric fitting to create smooth curves or surfaces through your data with interpolants and smoothing splines.