Description:
Correct Akima piecewise cubic Hermite interpolation.
Syntax:
makimamthd(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 corrected Akima 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 one-dimensional sequence |
Return value:
Sequence
Example:
|
A |
|
1 |
=[30,32,35,38,48,58,68,78,98,108,128,159,201,252,308,401,501,602] |
|
2 |
=[7.5,9.6,12,5,4,3,2,10,3,6,12,13,18,17,16,25,33,66] |
|
3 |
=[31,33,34,37,45,55,65,75,85,95,115,146,179,189,233,305,423,600] |
|
4 |
=makimamthd(A1,A2,A3) |
|