how to detect index of the max amplitude?

1 回表示 (過去 30 日間)
benghenia aek
benghenia aek 2019 年 2 月 1 日
回答済み: Andrei Bobrov 2019 年 2 月 1 日
Hello
I have vector and his index
A=[-0.0796 -0.0937 -0.0326 0.1182 -0.1510]
index=[4 9 13 17 24]
how to detect the index of the max?
max=0.1182
index= 17

採用された回答

Andrei Bobrov
Andrei Bobrov 2019 年 2 月 1 日
[out,ii] = max(A);
out_ind = index(ii);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by