Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

fir_sgsmooth (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: filter design

Requires: MathScript RT Module


b = fir_sgsmooth(p, f, w)

b = fir_sgsmooth(p, f)

[b, d] = fir_sgsmooth(p, f, w)

[b, d] = fir_sgsmooth(p, f)

Legacy Name: sgolay


Computes the coefficients of a Savitzky-Golay FIR smoothing filter.



Name Description
p Specifies the order of the polynomial. p must be a positive integer.
f Specifies the number of points to use in fitting. f must be a positive odd integer.
w Specifies the weighting vector. w can be an empty vector or an real vector with length f.


Name Description
b Returns the coefficients of the filter.
d Returns the differentiation filters. The i-th column of d is a differentiation filter for derivatives of order i-1.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


p = 2;
f = 15;
b = fir_sgsmooth(p, f)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful