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

1 view (last 30 days)
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?

Accepted Answer

Star Strider
Star Strider on 7 Aug 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 Comments

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!