PIECEWISE CUBIC SPLINE INTERPOLATION: Two functions (for constructing and evaluating the spline function) written originally in C language in NUMERICAL RECIPES were adapted for MatLAB. A clear example is provided in "demo.m", which compares the results with the MatLAB's spline function's outcome.
Comments and suggestions are welcome; please don't forget to rate.
Dr. Erol Kalkan, P.E. (2022). Piecewise Cubic Spline Interpolation (from NUMERICAL RECIPES in C) (https://www.mathworks.com/matlabcentral/fileexchange/66654-piecewise-cubic-spline-interpolation-from-numerical-recipes-in-c), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!