Download Help (Windows Only) 
Owning Classes: approximation and resampling
Requires: MathScript RT Module
y2 = interpolate1d(y1, x2)
y2 = interpolate1d(x1, y1, x2)
y2 = interpolate1d(x1, y1, x2, method)
Legacy Name: interp1
Interpolates yvalues based on sample data using a specified method.
Name  Description  

y1  Specifies the sample yvalues. If y1 is a matrix, LabVIEW performs interpolation for each column in the matrix. If y1 is complex, LabVIEW performs interpolation for the real part and the imaginary part, respectively. y1 is a real or complex, doubleprecision vector or matrix.  
x2  Specifies the xvalues at which you want to interpolate yvalues. x2 is a real, doubleprecision vector.  
x1  Specifies the sample xvalues. If you do not specify x1, LabVIEW sets x1 to the values of 0 ... length(y1)  1. x1 is a real, doubleprecision vector.  
method  Specifies the interpolation method to use. method is a string that accepts the following values.

Name  Description 

y2  Returns the yvalues interpolated at the values of x2. y2 is a real or complex, doubleprecision vector or matrix. 
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Not characterized 
X1 = 4:0.5:4;
Y1 = 1.02*X1.^3+0.5*X1.^2+2;
X2 = 4:0.1:4;
Y2 = interpolate1d(X1, Y1, X2, 'spline')