how to connect the upper points of a sine curve by making them a curve?
1 view (last 30 days)
Star Strider on 7 Aug 2022
Use the envelope function (R2015b and later) in the Signal Processint Toolbox.
envup = envelope(y);
The function has a number of options, so choose the one (probably 'peak') that gives the resullt you want.