Spline Toolbox | ![]() ![]() |
Approximation to Coefficients as Functions of y
Now comes the second step, to get the actual surface. First, extract the coefficients:
Then fit each coefficient vector coefsx(r,:)
by a spline of the same order ky
and with the same appropriate knot sequence knotsy
:
Note that, once again, we need to transpose the coefficient array from spb
, since spap2
takes the columns of its last input argument as the data values.
Correspondingly, there is now no need to transpose the coefficient array coefsb
of the resulting curve:
![]() | Switch in Order | The Bivariate Approximation | ![]() |