max_min

バージョン 1.0.0.0 (1.78 KB) 作成者: M MA
Get extremes of series.
ダウンロード: 2.2K
更新 2006/1/11

ライセンスの表示

Syntax:
[MAX,MIN] = MAX_MIN(X,DISP)

Inputs:
X Vector to analyse
DISP Show result in a plot (new figure) [ {0} | 1 ]

Output:
MAX Maximums structure with fields .i .val .iabs .abs (indices, values, indice of absolute maximum, absolute maximum)
MIN Minimums structure with fields .i .val .iabs .abs (indices, values, indice of absolute minimum, absolute minimum)

Example: (see screenshot)
x=[2 2 1 1 1 2 3 1 .5 1 1 1 .5 .5 .5 .7 .1 1 1 1 ];
[Max, Min]=max_min(x,1);
legend('x','max','min','abs max','abs min')

引用

M MA (2024). max_min (https://www.mathworks.com/matlabcentral/fileexchange/9572-max_min), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R12
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersData Distribution Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0