How to find the proper peaks in a graph?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
So, I need to find peaks but I haven't found a good 'algorithm' or method to find them, for instance I have the following graph, so you can see that Peak 1 is not covered and I probably don't want peak 2 and 3 is not part of the peaks.
I'm using findpeaks with MinPeakDistance of 150 for this example.
If I use Threshold, for some reason is not working as expected and I need to input a very small number to see something happening, and that number is .001, and that is giving me almost half the peaks which I don't want to.
I know this question is not clear and reason why is because I don't really know how to calculate the peaks that I want.
Hope it makes sense and someone can illuminate me.
1 commentaire
Prashant Arora
le 18 Oct 2017
Hi David,
Check out the prominence property of the peaks and the "MinPeakProminence" option in the findpeaks function.
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!