envelope function

2 次查看(过去 30 天)
Sonia Wiemann
Sonia Wiemann 2012-4-17
So enveloping a sound signal is probably more complex than this but I want to create an envelope with a 3 ms decay. I have a sound wave (A) that has been rectified by using absolute value and time points have been assigned by using the code "plot((0:length(A)-1)/44.1, A)" as the sampling rate is 44.1 KHz/sec (time is in Msec). What code can I use to create such an envelope?

回答(2 个)

Image Analyst
Image Analyst 2012-4-17
See our answers and code here http://www.mathworks.com/matlabcentral/answers/31957-how-to-make-an-envelope-of-a-signal, which is basically the same question.

Honglei Chen
Honglei Chen 2012-4-17
For a signal x, you can use the following code to get the envelope
t = 0:0.01:1;
x = exp(-t).*sin(2*pi*10*t);
plot(t,x)
y = abs(hilbert(x));
hold on;
plot(t,y,'r')

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by