plot a smooth envelope for oscillation curves
Show older comments
Hello, everyone, I would like to plot a smooth envelope for a oscillation curve. It seems that the function 'envelope' in MATLAB can be used to plot a envelope curve. But I cannot obtain a smooth envelope based on this function. Would anyone help me about this envelope curve? Following is the source data. Thanks.
[up,dw]=envelope(y,100,'analytic'); figure,plot(x,[up;dw])

[up,dw]=envelope(y,100,'peak'); figure,plot(x,[y;up;dw])

This is the kind of smooth envelope curve I want to obtain.

Accepted Answer
More Answers (1)
Categories
Find more on Spectral Estimation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

