Re: interp2 partial derivatives



Hi John,

I want to use method 'spline' or 'bicubic'. I think there should be an alternative to using 'gradient', because one uses piecewise polynomials in both methods.

Gordon


"John D'Errico" <woodchips@xxxxxxxxxxxxxxxx> wrote in message
Which method? They are all zero for nearest neighbor
interpolation. All are piecewise constant for the linear
method. So the derivatives will depend on the method
you choose.

The simplest solution is to use gradient.

John
.



Relevant Pages

  • Re: interp2 partial derivatives
    ... I want to use method 'spline' or 'bicubic'. ... I think there should be an alternative to using 'gradient', because one uses piecewise polynomials in both methods. ... lazy and just suggest a central finite difference. ...
    (comp.soft-sys.matlab)
  • Re: Convolution for Laplace Transform
    ... if the data for f and g are available on the same grid, ... interpolate the data for the two functions by piecewise polynomials independently, ... for example cubic splines, but using the same grid, then ... again by a spline. ...
    (sci.math.num-analysis)
  • Re: C code to calculate gradient of a function
    ... you should be able to determine its gradient. ... cubic spline, quaternary spline, piecewise continuous multivariate ... Boeing Associate Technical Fellow ...
    (comp.lang.c)
  • Re: Curve fitting to data plots
    ... the spline, if that makes sense. ... A weight per control point (increasing weight draws the curve locally ... _Splines_ are piecewise polynomials (the degree of which is decided ...
    (comp.graphics.algorithms)
  • Re: interp2 partial derivatives
    ... I want to use method 'spline' or 'bicubic'. ... I think there should be an alternative to using 'gradient', because one uses piecewise polynomials in both methods. ... lazy and just suggest a central finite difference. ... interp2 to interpolate several points. ...
    (comp.soft-sys.matlab)