PCHIP -- root solve

版本 1.0.0.0 (5.0 KB) 作者: Matthew Kelly
Fit a PCHIP spline through a data set and then compute the roots of the spline
79.0 次下载
更新时间 2017/3/4

查看许可证

% [tRoot, vRoot, ppx, ppv] = getPchipRoots(t,x)
%
% This function computes a PCHIP spline through the data set x(t) and then
% finds the roots of the spline.
%
% INPUTS:
% t = [1,n] = monotonically increasing vector of time stamps
% x = [1,n] = data at each time stamp = x(t)
%
% OUTPUTS:
% tRoot = [1,k] = monotonically increasing vector corresponding to the
% time at which each root occurs. Empty if no roots exist.
% vRoot = [1,k] = derivative of the interpolant at each of the roots.
% ppx = Matlab pp-form (PCHIP) spline that interpolates x(t)
% ppv = Matlab pp-form spline that is the derivative of x(t)
%
% NOTES:
% -- roots are computed numerically using Ridder's Method.
%

引用格式

Matthew Kelly (2024). PCHIP -- root solve (https://www.mathworks.com/matlabcentral/fileexchange/61883-pchip-root-solve), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Splines 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0