sgolayfilt
Calling Sequence
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)
Parameters
x:
vector or matrix of real or complex numbers
p:
polynomial order, real number less than n, default value 3
n:
integer, odd number greater than p
m:
vector of real positive valued numbers, length n
ts:
real number, default value 1
Description
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.
Examples