How can I identify the x-values at which the first difference peaks?

1 回表示 (過去 30 日間)
Vyshnave Sivasankar
Vyshnave Sivasankar 2019 年 10 月 11 日
コメント済み: darova 2019 年 10 月 11 日
As you an see above, the first difference peaks at 8 values. What do i input to identify those 8 values. This is what I have so far to obtain the first difference (bla is what I defined my data as):
>> clear idx
thr = 4500;
m=1;
for ii = 2 : length(bla)
if bla(ii) > thr
idx(m,:) = ii;
m=m+1;
end
end
>> plot(diff(idx))

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 10 月 11 日
Hi,
Those 8 peak values of the variable bla can be obtained with:
Peaks_bla = bla(idx);
Good luck.

その他の回答 (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