How do I select a specific peak in a repeating pattern?
Mostra commenti meno recenti
y is my data and I am trying to find the first peak of each repeating part, but in the third part, the last peak is greater than the first peak so the last peak is the peak that gets selected. This problem only occurs when the last peak is greater than the first peak. Nothing I have tried has been working.
pks = findpeaks(y,'MinPeakHeight', 200,'MinPeakDistance',4000)
Risposta accettata
Più risposte (1)
Image Analyst
il 5 Set 2017
Modificato: Image Analyst
il 5 Set 2017
0 voti
OK, not too hard (a variety of ways to do it probably), but you forgot to attach your data, so I'll wait for that, as will probably most people. I'd probably threshold and find each group, then scan within the group to find out when the data stops increasing and starts decreasing. You can use diff() for that.
1 Commento
Spencer Smith
il 5 Set 2017
Modificato: Spencer Smith
il 5 Set 2017
Categorie
Scopri di più su Descriptive Statistics in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
