findextrema.m

Finds minima and maxima of data.

現在この提出コンテンツをフォロー中です。

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;

引用

Schuberth Schuberth (2026). findextrema.m (https://jp.mathworks.com/matlabcentral/fileexchange/3586-findextrema-m), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: Impulsive Noise Meter, Reverberation Time Calculator

カテゴリ

Help Center および MATLAB AnswersInterpolation についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0