Code covered by the BSD License  

Highlights from
Hermite cubic interpolating polynomial with specified derivatives

5.0

5.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 2.99 KB File ID: #28944

Hermite cubic interpolating polynomial with specified derivatives

by Nick Henderson

 

04 Oct 2010

Computes piecewise cubic polynomial which interpolates function values and first derivatives.

| Watch this File

File Information
Description

PP = PCHIPD(X,Y,D) provides the piecewise cubic polynomial which interpolates values Y and derivatives D at the sites X. This is meant to augment the built-in Matlab function PCHIP, which does not allow the user to specify derivatives.

X must be a vector.

If Y and D are vectors, then Y(i) and D(i) are the value and derivative to be matched at X(i).

If Y and D are matrices, then size(Y,2) == size(D,2) == length(X). Also, size(Y,1) == size(D,1). Use this for interpolating vector valued functions.

YY = PCHIPD(X,Y,D,XX) is the same as YY = PPVAL(PCHIPD(X,Y,D),XX), thus providing, in YY, the values of the interpolant at XX.

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 May 2012 Max Radin  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
interpolation Nick Henderson 05 Oct 2010 11:35:26
piecewise polynomial Nick Henderson 05 Oct 2010 11:35:26

Contact us at files@mathworks.com