how to connect the upper points of a sine curve by making them a curve?

1 vue (au cours des 30 derniers jours)
i want to extract a curve like what is in red from the plot in blue how can i do that?
je veux extraire une courbe comme il est indiqué en rouge d'aprés la plot en bleu comment je peux aire ça?

Réponse acceptée

Star Strider
Star Strider le 7 Août 2022
Use the envelope function (R2015b and later) in the Signal Processint Toolbox.
Perhaps:
envup = envelope(y);
The function has a number of options, so choose the one (probably 'peak') that gives the resullt you want.
.
  4 commentaires
Aida Bouaziz
Aida Bouaziz le 7 Août 2022
great, it works
thnks
Star Strider
Star Strider le 7 Août 2022
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by