Local maxima and minima of a pp spline

Determine the locations of local maxima and minima in a pp spline generated by pp = spline(x,Y);
1K Downloads
Updated 3 Jul 2010

View License

This function uses vectorised methods to determine the locations of maxima and minima where they exist within a piecewise spline fit. The matlab built-in functions for determining the maxima and minima, by differentiating the pp spline and finding its zeros (using the Spline toolbox), are quite slow, and are given as comment at the end of the m-file for reference.

Cite As

Matthew Arthington (2024). Local maxima and minima of a pp spline (https://www.mathworks.com/matlabcentral/fileexchange/26144-local-maxima-and-minima-of-a-pp-spline), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Altered the example code so that it is also toolbox independent.

1.0.0.0