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

decimate (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: resampling

Requires: MathScript RT Module


c = decimate(a, b)

c = decimate(a, b, n)

c = decimate(a, b, option)

c = decimate(a, b, n, option)


Uses a type 1 Chebyshev filter to resample a signal.



Name Description
a Specifies the original signal. a is a real vector.
b Specifies the new sampling rate. b is a positive integer.
n Specifies the order of the type 1 Chebyshev filter to use. n is a positive integer.
option Specifies the type of filter to use. option is a string that accepts the following values.

'FIR' Directs LabVIEW to use an FIR filter to perform the resampling.
'IIR' Directs LabVIEW to use an IIR filter to perform the resampling.


Name Description
c Returns a resampled version of a at 1/b times the original rate. The length of c is 1/b times the length of a. c is a real vector.


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


A = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7];
B = 2;
N = 3;
C = decimate(A, B, N)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful