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

interpolate (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 = interpolate(x, rate)

y = interpolate(x, rate, len, alpha)

[y, f] = interpolate(x, rate)

[y, f] = interpolate(x, rate, len, alpha)

Legacy Name: interp

Description

Uses a lowpass interpolation filter to resample an input signal at a high rate.

Examples

Inputs

Name Description
x Specifies the input signal to resample. The length of x must be greater than 2*len. x is an array of real double-precision, floating-point numbers.
rate Specifies the resampling rate. rate is a 32-bit signed integer. The default is 1. If rate is less than or equal to 0, LabVIEW uses the default value.
len Specifies the size of the interpolation filter. len is a 32-bit signed integer. The default is 4. If len is less than or equal to 0, LabVIEW uses the default value.
alpha Specifies the cutoff frequency. alpha is a double-precision, floating-point number. The default is 0.5. If alpha is less than or equal to 0 or greater than 1, LabVIEW uses the default value.

Outputs

Name Description
y Returns the resampled signal. The length of y is 2*rate. y is an array of double-precision, floating-point numbers.
f Returns the coefficients of the lowpass interpolation filter. The length of the lowpass interpolation filter is 2*rate*len+1. f is an array of double-precision, floating-point numbers.

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

X = 1:9;
[Y, F] = interpolate(X, 2, 4, 0.5)

Related Topics

interpolate1d
interpolate2d
interpolateft


 

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