Detect peaks before drop in signal

4 vues (au cours des 30 derniers jours)
Marc Elmeua
Marc Elmeua le 14 Mai 2024
Commenté : Marc Elmeua le 15 Mai 2024
Hi everyone,
I have this signal where i need to detect only the peak right before the signal drops but I can't figure out a way to do it. Can anyone give me a hand?
Thank you so much!

Réponse acceptée

Star Strider
Star Strider le 14 Mai 2024
Withoiut having the data to work with, one option could be the islocalmax function. Use 'FlatSelection','last' since the tops of those pulses could be considered ‘flat’. You will have to experiment.

Plus de réponses (1)

Zain Ahmed
Zain Ahmed le 14 Mai 2024
One way you can do is finding the derivative of the signal.
For example: if the current derivative is 0 and both previous and next points are negative, then you found a peak before making a drop.
  1 commentaire
Marc Elmeua
Marc Elmeua le 15 Mai 2024
Thank you very much Zain!

Connectez-vous pour commenter.

Tags

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by