User`s guide

smooth
4-128
4smooth
Purpose Smooth the response data
Syntax yy = smooth(ydata)
yy = smooth(ydata,span)
yy = smooth(ydata,'method')
yy = smooth(ydata,span,'method')
yy = smooth(ydata,'sgolay',degree)
yy = smooth(ydata,span,'sgolay',degree)
yy = smooth(xdata,ydata,...)
Arguments
Description
yy = smooth(ydata) smooths the response data specified by ydata using the
moving average method. The default number of data points in the average (the
span) is five.
yy is the smoothed response data. Note that you need not specify
the predictor data if it is sorted and uniform.
yy = smooth(ydata,span) uses the number of data points specified by span in
the moving average calculation.
span must be odd.
yy = smooth(ydata,'method') smooths the response data using the method
specified by
method and the default span. The supported smoothing methods
ydata A column vector of response data.
span The number of data points to include for each smooth
calculation.
'method' The smoothing method.
sgolay Use Savitzky-Golay smoothing.
degree The polynomial degree for the Savitzky-Golay method.
xdata A column vector of predictor data.
yy A vector of smoothed response data.