d*j 发帖数: 756 | 1 刚刚看了这个链接关于 splinefit的例子:
http://www.mathworks.com/matlabcentral/fileexchange/13812-splin
请教下,里面的break 和 order 是啥意思啊?
就是这个例子里面的:
% x = linspace(0,2*pi,100);
% y = sin(x) + 0.1*randn(size(x));
% % Breaks
% breaks = [0:5,2*pi];
%
% % Fit a spline of order 5
% pp = splinefit(x,y,breaks,5);
%
% % Fit a spline of order 3 with periodic boundary conditions
% pp = splinefit(x,y,breaks,3,'p');
%
% % Constraints: y(0) = 0, y'(0) = 1 and y(3) + y"(3) = 0... 阅读全帖 |
|
d*j 发帖数: 756 | 2 刚刚看了这个链接关于 splinefit的例子:
http://www.mathworks.com/matlabcentral/fileexchange/13812-splin
请教下,里面的break 和 order 是啥意思啊?
就是这个例子里面的:
% x = linspace(0,2*pi,100);
% y = sin(x) + 0.1*randn(size(x));
% % Breaks
% breaks = [0:5,2*pi];
%
% % Fit a spline of order 5
% pp = splinefit(x,y,breaks,5);
%
% % Fit a spline of order 3 with periodic boundary conditions
% pp = splinefit(x,y,breaks,3,'p');
%
% % Constraints: y(0) = 0, y'(0) = 1 and y(3) + y"(3) = 0... 阅读全帖 |
|