k-Wave Toolbox |

# envelopeDetection

Extract signal envelope using the Hilbert Transform

## Syntax

    env = envelopeDetection(x)

## Description

`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

## Inputs

`x` | input function

## Outputs

`env` | envelope of input function

## See Also

`fft`

© 2009, 2010, 2011 Bradley Treeby and Ben Cox.