"David Epstein" <David.Epstein.spam@remove.warwick.ac.uk> wrote in message <lka0n3$6vv$1@newscl01ah.mathworks.com>...
> Question 1: I want to work with splines given by least squares approximation. I think this means spap2, but would be happy to be directed to other Matlab spline functions.
self-advertising:
http://www.mathworks.fr/matlabcentral/fileexchange/25872-free-knot-spline-approximation
You can disable free-knot option to work with standard spline.
> Question 2: I want to make closed curves, so the spline should be periodic. Is it possible to do this with spap2?
In the package you can enforce periodic conditions.
Bruno
> Question 1: I want to work with splines given by least squares approximation. I think this means spap2, but would be happy to be directed to other Matlab spline functions.
self-advertising:
http://www.mathworks.fr/matlabcentral/fileexchange/25872-free-knot-spline-approximation
You can disable free-knot option to work with standard spline.
> Question 2: I want to make closed curves, so the spline should be periodic. Is it possible to do this with spap2?
In the package you can enforce periodic conditions.
Bruno