Code covered by the BSD License  

Highlights from
Envelope

Be the first to rate this file! 19 Downloads (last 30 days) File Size: 1.5 KB File ID: #23769
image thumbnail

Envelope

by Svetoslav Bajlekov

 

14 Apr 2009

Envelope of an oscillating signal - sinusoidal or otherwise

| Watch this File

File Information
Description

This function begins by deducing the wavelength of the signal's primary Fourier component. It then smooths the signal using a moving-window average -- the window is roughly top hat, of size equal to the primary wavelength. For 2-D data it will perform this function on each column of data, using the primary wavelength of the central column throughout.

The only input is the oscillating field. This method works remarkably well in obtaining the laser field envelope from the particle-in-cell simulations I have tested it on (see screenshot).

A possible extension would be to adapt it for a signal with a time-dependent frequency, by implementing a window of position-dependent size.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
19 Aug 2010 Brian Katz

I have tried this on some data, and the results do not seem correct. I am looking at impulse responses (time domain pulse and decay, 240000pt vector). The results does not follow any envelope, and the caluclation time is very long for any appreciable vector sizes (due to the inherent FFT).
It would be benefitial to have a simple example in the help to be sure that the function works correctly.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
communications Svetoslav Bajlekov 14 Apr 2009 14:28:32
measurement Svetoslav Bajlekov 14 Apr 2009 14:28:32
signal processing Svetoslav Bajlekov 14 Apr 2009 14:28:32
simulation Svetoslav Bajlekov 14 Apr 2009 14:28:32
physics Svetoslav Bajlekov 14 Apr 2009 14:36:13
simulation Vaibhav 19 Sep 2011 18:25:32

Contact us at files@mathworks.com