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

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

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

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.

Examples

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

Related Topics

interp1
interp2
interpft


Resources


 

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