image thumbnail

Local maxima and minima of a pp spline

version 1.2.0.0 (2.02 KB) by Matthew Arthington
Determine the locations of local maxima and minima in a pp spline generated by pp = spline(x,Y);

1K Downloads

Updated 03 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 (2021). 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!