2K Downloads
Aktualisiert
13. Jun 2003
Keine Lizenz
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;
Zitieren als
Schuberth Schuberth (2026). findextrema.m (https://de.mathworks.com/matlabcentral/fileexchange/3586-findextrema-m), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R12
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Interpolation >
Mehr zu Interpolation finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: Impulsive Noise Meter, Reverberation Time Calculator
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 |
