"John D'Errico" <woodchips@rochester.rr.com> wrote in message <lkaks0$mi8$1@newscl01ah.mathworks.com>...
...snip...
> They all use cubic polynomials.
@John: According to my reading of the documentation for spap2, what you say here is not correct. The documentation for spap2 claims to provide polynomial approximations of any desired degree.
The degree or order is called k in the documentation. To discover the meaning of k to spap2, note that the Mathworks example of a cubic spline has k=4, and their example of a linear approximation has k=2.
...snip...
> They all use cubic polynomials.
@John: According to my reading of the documentation for spap2, what you say here is not correct. The documentation for spap2 claims to provide polynomial approximations of any desired degree.
The degree or order is called k in the documentation. To discover the meaning of k to spap2, note that the Mathworks example of a cubic spline has k=4, and their example of a linear approximation has k=2.