필터 지우기
필터 지우기

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