| k-Wave Toolbox |
|
Extract signal envelope using the Hilbert Transform
env = envelopeDetection(x)
envelopeDetection applies the Hilbert transform to extract the envelope from an input vector x. If x is a matrix, the envelope along each row is returned. For example, running the code
x = toneBurst(10e6, 0.5e6, 10);
figure;
plot(0:length(x)-1, x, 'k-', 0:length(x)-1, envelopeDetection(x), 'r-');
legend('Input Signal', 'Envelope');
produces the output

|
input function |
|
envelope of input function |
fft
|
db2neper | expandMatrix | ![]() |
© 2009-2014 Bradley Treeby and Ben Cox.