Local maxima and minima of a pp spline
by Matthew Arthington
18 Dec 2009
(Updated 03 Jul 2010)
Determine the locations of local maxima and minima in a pp spline generated by pp = spline(x,Y);
|
Watch this File
|
| File Information |
| Description |
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. |
| Required Products |
Spline Toolbox
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 03 Jul 2010 |
Altered the example code so that it is also toolbox independent. |
|
Contact us at files@mathworks.com