Finding peaks inside an Array

7 ビュー (過去 30 日間)
MeitiLuk
MeitiLuk 2020 年 11 月 6 日
コメント済み: Ameer Hamza 2020 年 11 月 6 日
I want to show my Peaks inside a plot.
findpeaks seems to be the only thing that can do this.
But unfortunatly I can't get it to work with arrays.
for i =1:15
[pk_Moment {:,i}, lk_Freq {:,i}] = findpeaks(FFT_Moment {1,i}(:,1), FFT_Freq {1,i}(1,:));
end
Can Anybody show me how it's done?
  2 件のコメント
KSSV
KSSV 2020 年 11 月 6 日
What error you get with the above?
MeitiLuk
MeitiLuk 2020 年 11 月 6 日
Invalid use of operator.

サインインしてコメントする。

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 6 日
編集済み: Ameer Hamza 2020 年 11 月 6 日
The left side should be like this
[pk_Moment{i}, lk_Freq{i}] = findpeaks(FFT_Moment {1,i}(:,1), FFT_Freq {1,i}(1,:));
  4 件のコメント
MeitiLuk
MeitiLuk 2020 年 11 月 6 日
Yes now it worked
Thanks!
Ameer Hamza
Ameer Hamza 2020 年 11 月 6 日
I am glad to be of help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by