Create and plot a signal that resembles the initial detection of a light pulse propagating through a dispersive medium.
t = 0.5:-1/100:-2.49;
z = airy(t*10).*exp(-t.^2);
plot(z)
Determine the envelopes of the sequence using the magnitude of its analytic signal. Plot the envelopes.
envelope(z)
Compute the analytic envelope of the signal using a 50-tap Hilbert filter.
envelope(z,50,'analytic')
Compute the RMS envelope of the signal using a 40-sample moving window. Plot the result.
envelope(z,40,'rms')
Determine the peak envelopes. Use spline interpolation with not-a-knot conditions over local maxima separated by at least 10 samples.
envelope(z,10,'peak')