envelope function
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (2)
Image Analyst
el 17 de Abr. de 2012
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.
0 comentarios
Honglei Chen
el 17 de Abr. de 2012
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')
0 comentarios
Ver también
Categorías
Más información sobre Multirate Signal Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!