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

pchip (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the polynomials class.

Syntax

pchip(x1, y1, x2)

y2 = pchip(x1, y1, x2)

Description

Generates a piecewise cubic Hermitian polynomial. LabVIEW uses x1 and y1 to generate the piecewise cubic Hermitian polynomial. x2 specifies additional x-values, and y2 returns the y-values that correspond to x2. In other words, (x2, y2) are interpolated values of the underlying piecewise cubic Hermitian polynomial.

Examples

Inputs

Name Description
x1 Specifies a real vector.
y1 Specifies a real vector of the same size as x1. y1 also can be a matrix. If y1 is a matrix, LabVIEW treats the columns of y1 as the vector y1.
x2 Specifies a vector of additional x-values.

Outputs

Name Description
y2 Returns a real vector of the same size as x2.

Examples

Y2 = pchip([1, 2, 3, 4, 5, 6], [0, 0, 1, 1, 0, 0], [2.3, 7.1])

Related Topics

interp1
spline


Resources


 

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