mmppder.m

来自「《精通matlab7》“mastering matlab 7”的代码。」· M 代码 · 共 11 行

M
11
字号
function ppd=mmppder(pp)
%MMPPDER Cubic Spline Derivative Interpolation.
% PPD=MMPPDER(PP) returns the piecewise polynomial vector PPD
% describing the cubic spline derivative of the curve described by
% the piecewise polynomial in PP. 

[br,co,npy,nco]=unmkpp(pp);	   % take apart pp
sf=nco-1:-1:1;							% scale factors for differentiation
dco=sf(ones(npy,1),:).*co(:,1:nco-1);	% derivative coefficients
ppd=mkpp(br,dco); 					% build pp form for derivative

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?