Can anyone help me with the above problem? I am currently using the cubic smoothing spline, but it's just not working well enough. The code looks like this
w = ones(size(surface1m),1);
[sp,values]=spaps(surface1m(:,5),surface1m(:,9),0.01,w,2);
The last input argument defines the order of the spline, 1 for quadratic, 2 for cubic and 3 for quintic.
Does anybody have an idea how to do this for the quartic version (4th order)? Any help would be extremely appreciated this is getting relatively urgent.. Thanks in advance!