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

resample (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

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.

Details

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

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