Trouble with Envelope Functions
Show older comments
Hi,
I have been trying to obtain a smooth envelope of my data. I have tried using other peoples solutions from the file exchange but unable to get a smooth envelope. See attached images.
Attached is the relevant data.
If anyone can recommend a file exchange or other solution would be much appreciated!
Thanks!
1 Comment
Glo
on 21 Apr 2015
Can you be more specific about your question? What is this data? What do you mean by "smooth envelope"? What is the specific goal?
Accepted Answer
More Answers (1)
Youssef Khmou
on 21 Apr 2015
Edited: Youssef Khmou
on 21 Apr 2015
try the following basic solution using Hilbert transform :
fs=40;
t=0:1/fs:4-1/fs;
f=15;
y=1.5*sin(2*pi*f*t).*exp(-1.1*t);
y=y+0.1*randn(size(t));
plot(t,y)
hold on;
z=abs(hilbert(y));
plot(t,smooth(z,0.25),'r');

2 Comments
Si
on 21 Apr 2015
Hany Ferdinando
on 29 Jan 2019
Hi Youssef,
I also faced the same problem using envelop function. However, using your approach seemed not useful for me. The blue line is the PPG signal. The envelope calculation using hilbert seemed not what I expected. What do you think?
Thanks
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

