Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

decimate (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the resampling class.

Syntax

c = decimate(a, b)

c = decimate(a, b, n)

c = decimate(a, b, option)

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

Description

Uses a type 1 Chebyshev filter to resample a signal.

Examples

Inputs

Name Description
a Specifies the original signal. a is a real vector.
b Specifies the new sampling rate. b is a positive real number.
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.

Outputs

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 or complex vector.

Examples

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

cheb1ap
cheb1ord
cheby1
fir1


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit