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

resample (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: resampling

Requires: MathScript RT Module

Syntax

y = resample(x, p, q)

y = resample(x, p, q, n)

y = resample(x, p, q, n, beta)

y = resample(x, p, q, b)

[y, b] = resample(x, p, q)

[y, b] = resample(x, p, q, n)

[y, b] = resample(x, p, q, n, beta)

Description

Resamples an input signal.

Examples

Inputs

Name Description
x Specifies the input signal. If x is a matrix, resample resamples x along each column.
p Specifies the upsampling factor. p is a positive integer.
q Specifies the downsampling factor. q is a positive integer.
n Specifies the length of the FIR filter applied to the upsampled signal. The default is 10.
beta Designs the Kaiser window.
b Specifies the FIR filter. b is a vector.

Outputs

Name Description
y Returns the resampled signal.
b Returns the FIR filter applied to the upsampled signal.

Examples

y = resample(1:10, 2, 3)

Related Topics

downsample
upsample


 

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