You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
FINDEXTREMA - finds minima and maxima of data
If 'y' is the data the function finds the maximas 'ma' and minimas 'mi'.
The x-position of the extrema are interpolated.
Usage: [ma,mi]=findextrema(y);
Example:
x=-10:0.1:10; y=sin(x);
[ma,mi]=findextrema(y);
plot(y); hold on; plot(ma,y(round(ma)),'ro'); plot(mi,y(round(mi)),'gs'); hold off;
Cite As
Schuberth Schuberth (2026). findextrema.m (https://uk.mathworks.com/matlabcentral/fileexchange/3586-findextrema-m), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Impulsive Noise Meter, Reverberation Time Calculator
General Information
- Version 1.0.0.0 (497 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
