Poly Spline Interpolation with Pth Continuous Derivatives

버전 1.0.0 (2.73 KB) 작성자: Mohammad Al-Fetyani
This function fits a polynomial splines of order m with pth continuous derivatives to a given data (x,y).
다운로드 수: 69
업데이트 날짜: 2019/1/1

라이선스 보기

% polysplinefitc
% This function fits a polynomial splines of order m with pth continuous
% derivatives to a given data (x,y).
% it is valid for one dimension only.
% the function uses interpolation approach so it is not suitable for
% noisy data
% ----------------------------------------------
% inputs
% x x data must be increasing. ex x = [1,2,3]
% y f(x)
% m polynomial order for each spline
% p number of continuous derivatives
% cond the addition conditions needed to compute the splines
% it's given by spline initial derivative values
% for the first and last spline only.
% cond rows number = spline order - 1.
% ploty 1 to show plots of the splines and their derivatives
%
% cond form is [spline,derivative_order,value_of_the_derivative]
% spline : 1 for the first spline
% 2 for the last splines
% ex:
% cond = [1 1 0;2 1 0]
% this means that the value of the first derivative of the first spline
% is zero and the value of the first derivative of the last spline is zero
%
% ---------------------------------------------------------------------
% output
% sol spline between each x
% ---------------------------------------------------------------------
% example
% x = [0 2 4 6 8];
% y = [0 2.2484 2.3164 2.5413 2.8626];
% m = 4;
% p = 2;
% cond = [1 1 0;2 1 0;1 2 0;2 2 0];
% sol = polysplinefitc(x,y,m,p,cond,0)
%
% All copyrights goes to Mohammad Al-Fetyani
% University of Jordan

인용 양식

Mohammad Al-Fetyani (2024). Poly Spline Interpolation with Pth Continuous Derivatives (https://www.mathworks.com/matlabcentral/fileexchange/69863-poly-spline-interpolation-with-pth-continuous-derivatives), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
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