Matlab functions for 1-D, 2-D, and 3-D splines in tension


Interpolation and gridding of data are common procedures in the physical sciences, and many approaches have been proposed. In many cases these tasks can be simplified by using Green's functions for splines in tension. The functions presented here are Matlab implementations of the theory presented in the paper referenced below. For efficiency, two core functions that evaluate the Kelvin-functions in the Green's functions (equations 23 and 24) are implemented in C and called as MEX files by the matlab function with the same name. If you have difficulty making the MEX functions work you may simply add the plain Matlab calls for (23) and (24) to the respective Matlab functions.


References to use of TSPLINE

  • Wessel, P., and D. Bercovici, 1998, Gridding with Splines in Tension : A Green function Approach, Math. Geol., 30, 77-93.


    Availability of TSPLINE Matlab code

    1. spline1d.m - 1-D spline in tension
    2. spline2d.m - 2-D spline in tension
    3. spline3d.m - 3-D spline in tension
    4. splinec2.m - 2-D parametric spline in tension
    5. splinec3.m - 3-D parametric spline in tension
    6. spline2d_green.m - empty sub-function called by spline2d
    7. spline2d_green.c - C/MEX sub-function called by spline2d_green
    8. spline2d_grad.m - emtpy sub-function called by spline2d
    9. spline2d_grad.c -C/MEXsub-function called by spline2d_grad
    10. Makefile used to make MEX executables

    Last update February 10, 1998 by Paul Wessel