y = sgolayfilt (x) y = sgolayfilt (x, p) y = sgolayfilt (x, p, n) y = sgolayfilt (x, p, n, m) y = sgolayfilt (x, p, n, m, ts)
vector or matrix of real or complex numbers
polynomial order, real number less than n, default value 3
integer, odd number greater than p
vector of real positive valued numbers, length n
real number, default value 1
This function applies a Savitzky-Golay FIR smoothing filter to the data given in the vector x; if x is a matrix, this function operates on each column. The polynomial order p should be real, less than the size of the frame given by n. m is a weighting vector with default value identity matrix. ts is the dimenstion along which the filter operates. If not specified, the function operates along the first non singleton dimension.