|
|
| File Information |
| Description |
LOCALPEAKS Find local peaks and troughs in a vector
SYNTAX
peaks = localpeaks(X)
peaks = localpeaks(X,MODE)
DESCRIPTION
peaks = localpeaks(X) locates the local peaks in vector X.
peaks = localpeaks(X,MODE) locates local features specified by MODE. MODE can be set to 'peaks' (default), 'troughs' in order to identify local troughs or 'both' in order to identify both local peaks and troughs. |
| Acknowledgements |
This submission has inspired the following:
Peaks picking
|
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 27 Apr 2010 |
added the 'both' option, updated help, acknowledged other submission |
| 29 Apr 2010 |
Fixed a silly mistake, removed index output to bring the function more in line with MATLAB conventions (find(localpeaks(x)) would do the same), added an error trap |
| 27 May 2010 |
Updated description |
| 01 Jun 2010 |
Updated to address Christos Saragiotis' comment |
|
Contact us at files@mathworks.com