A generalized function can plot the envelope of any given data. Additionally, a demos m-file shows how to use it.
I really like it. But I don't think It works on pressure signal.
Lack of a list of different interpolation methods, the .zip file only contained the function, the demo and a set of data.
Robust only with sinusoidal periodic signal
Please, how to do it for extracting the envelope for 2 or more curve ?
rad! thanks works great for what Im doing
Excellent! Thanks.. It worked just perfect for the signals i work with.
Thanks a lot
i couldn´t edit, so i will add another commentary..
any given data without noise should be the description
looks like it works fine only for Matlab/Simulink generated data
try and test
3d data as well?
There is some problems when signal contains some noise.
It isn't work well for "any signal".
perfect, recursive envelopes works great
Exactly what I needed. Short and efficient.
Real good job
Does the job. Well done.
easy, simple, effective
Did a lot of serch but no other m file was online.
The simpler the better.. Just great!!!!
Clean and practical, great work.
thanks a lot!
Helped a lot... Thanks...
baba kheili bahali!!!
nice written routine (short and clear) but:
some optimisation could be done (find is done twice, while not necessary);
not working correctly if extreme points have successive equal points. example:
[x1,y1,x2,y2]=envelope(1:10,[0 1 -1 2 2 -2 -2 1 -1 0])
Modify the envelope function and add the interpolation into it. So it is much easier for user to use envelope function. Additionally, screenshot is changed.