フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to extracts each index for each maximum value?

1 回表示 (過去 30 日間)
Saifuddin Chowdhury
Saifuddin Chowdhury 2014 年 2 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
[value index]=max() give only one maximum value and a index. But i need a code that gives each maximum value and their index in both time and frequency domain. how do it?

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 2 月 10 日
value = max(YourVector);
allindex = find(YourVector == value);
A maximum in the time domain is present in all frequencies.
I wonder if you are looking for peaks rather than maximums ?

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by