Spline2D or Piecewise Continuous 2D Polynomials

版本 1.0.0.0 (68.3 KB) 作者: Mark Mikofski
Fit a 2D function with piecewise continuous polynomials
859.0 次下载
更新时间 2013/5/3

查看许可证

Spline2D is a work in progress. Currently it only matches C0 (continuous function) not C1 (continuous in 1st derivative) or C2 (continuous in 2nd derivative), which will be added later.

Spline2D requires PolyVal2D:
http://www.mathworks.com/matlabcentral/fileexchange/41097-polyval2d-and-polyfit2d

Spline2D is hosted on Github in a Gist here:
https://gist.github.com/mikofski/5503414

%SPLINEFIT2D Fit 2D data to a set of piecewise continuous polynomials.
% PP = SPLINEFIT2D(F,X,Y,N,M,XB,YB) fits F(X,Y) with polynomials of order
% N, M respectively, within the each pair of consecutive bounds [XB(i) XB(i+1)]
% and [YB(i) YB(i + 1)] for i from 1 to NUMEL(XB)-1 and NUMEL(YB)-1, respectively.

%SPLINEVAL2D Evaluate 2D data to a set of piecewise continuous polynomials.
% F = SPLINEFIT2D(PP,X,Y,N,M,XB,YB) evaluates F(X,Y) with polynomials of order
% N, M respectively, within the each pair of consecutive bounds [XB(i) XB(i+1)]
% and [YB(i) YB(i + 1)] for i from 1 to NUMEL(XB)-1 and NUMEL(YB)-1, respectively.

引用格式

Mark Mikofski (2024). Spline2D or Piecewise Continuous 2D Polynomials (https://www.mathworks.com/matlabcentral/fileexchange/41610-spline2d-or-piecewise-continuous-2d-polynomials), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
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!

html/

版本 已发布 发行说明
1.0.0.0