Using findpeaks from a certain point

7 ビュー (過去 30 日間)
Lev Mihailov
Lev Mihailov 2019 年 7 月 8 日
コメント済み: darova 2019 年 7 月 8 日
for atls(i)+ten>ten;
MaxPeak=AtlasPoint(atls(i)-ten:atls(i));
[pks,locs] = findpeaks(MaxPeak,1,'MinPeakDistance');
end
%AtlasPoint matrix
%atls maximum of the given
Hello! I recently began to learn the function findpeaks and I didn’t study it until the end. I have an AtlasPoint matrix, some of the maximum values ​​of the dadchik, ten is the count of how many rows I remove. The essence of the question, I need to use findpeaks from the moment atlas-ten, I need to see the distance from each peak to the next, how do I do this?

回答 (1 件)

darova
darova 2019 年 7 月 8 日
If the data is [x;y]
[pks, locs] = finpeaks(y);
x(locs(2)) - x(locs(1)) % dinstance in X direciton between first two peaks
diff(x(locs)) % distance between all peaks in X direction
  2 件のコメント
Lev Mihailov
Lev Mihailov 2019 年 7 月 8 日
編集済み: Lev Mihailov 2019 年 7 月 8 日
Error Undefined function or variable 'finpeaks'.
[pks, locs] = finpeaks(atls);
x(locs(2)) - x(locs(1)) % dinstance in X direciton between first two peaks
diff(x(locs)) % distance between all peaks in X direction
darova
darova 2019 年 7 月 8 日
findpeaks(atls)

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

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by