Quantcast
Channel: MATLAB Central Newsreader - tag:"spline"
Viewing all articles
Browse latest Browse all 18

splines (particularly spap2)

$
0
0
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.
Question 2: I want to make closed curves, so the spline should be periodic. Is it possible to do this with spap2?
Question 3. In the documentation for spap2 I found
"sp = spap2(augknt([a,xi,b],4),4,x,y)
is the least-squares approximant to the data x, y, by cubic splines with two continuous derivatives."
So Mathworks thinks that cubic splines have order 4. But the spline community thinks that cubic splines have order 3. Or am I misunderstanding?
Question 4. Is there somewhere a high-level description of the algorithm used by spap2, or do I have to try to decipher the code?

Viewing all articles
Browse latest Browse all 18

Trending Articles