pchipmthd()

Description:

Piecewise cubic Hermite interpolating polynomial.

Syntax:

pchipmthd(x,y,newx)

Note:

x,y are a coordinate vector of an existing point, and newx is a query point vector. The function returns the interpolation vector corresponding to the query point specified by newx; the vector’s value is determined by x and y’s shape preserving piecewise cubic interpolation values.

 

Parameter requirements:

1. The range of newx must not exceed the original boundaries of x;

2. x should be strictly monotonic increasing, but no requirements for y; x and y should have same length;

3. Null values and infinite values are not allowed.

Parameter:

x/y/newx

A matrix

Return value:

Sequence

Example:

 

A

 

1

=[1, 3, 4, 8, 12, 19, 40, 100]

 

2

=[3, 10, 7, 15, 21, 19, 10, 30]

 

3

=[2, 3, 4, 5, 6, 7, 10, 14, 16, 20, 30, 50, 60, 70, 80, 90, 100]

 

4

=pchipmthd(A1,A2,A3)