This Spline toolbox provides the possibility to define spline curves and surfaces according to the common definition with knot vectors, the order of the B-spline basis functions and their coefficients.
The Spline objects can be evaluated, differentiated and visualized in multiple fashions, e.g. fast evaluation at grid points for surfaces or the calculation of all sorts of curvatures. As the evaluation is based on the application of Horner's scheme on the different polynomial segments, it is even possible to extend the functions continuously and evaluate at points that are not contained in the domain.
Furthermore, this toolbox allows the calculation of spline approximants for given pairs of function values, in both cases of curves and surfaces. They can be extended by considering additional interpolation and smoothing conditions.
A detailed description of all functionalities, combined with several examples, can be found in the documentation.
This toolbox was only created for the application in a research project, so errors are only handled properly during the definition of a spline. Any other error is often originated in mismatching dimensions, e.g. by manual manipulation of properties, or not correctly defined knots vectors/coefficients. But feel free to contact me in any case of problem as I am always trying to improve the program.
Florian Martin (2020). Spline Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/72654-spline-toolbox), MATLAB Central File Exchange. Retrieved .
Bug fix for bivariate splines with partial periodic knots, Smooth function can return matrix and right-hand side
spline surfaces with 2D control points can be plotted, improved mesh plotting, minor bug fixing
- Update 1.1: Bugfix for collocation matrices of periodic splines (Smooth should work now properly for periodic splines), support of audi variables, interpolate function added