Code covered by the BSD License  

Highlights from
Spline2D or Piecewise Continuous 2D Polynomials

5.0

5.0 | 1 rating Rate this file 17 Downloads (last 30 days) File Size: 68.3 KB File ID: #41610
image thumbnail

Spline2D or Piecewise Continuous 2D Polynomials

by

 

Fit a 2D function with piecewise continuous polynomials

| Watch this File

File Information
Description

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.

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Other requirements PolyVal2D from MATLAB Central File Exchange
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
17 Oct 2013 Zoe  

Contact us