4.0

4.0 | 4 ratings Rate this file 206 downloads (last 30 days) File Size: 1.75 KB File ID: #15637

Calculate Wigner distribution

by Adam Wyatt

 

19 Jul 2007 (Updated 20 Jul 2007)

Code covered by BSD License  

Calculates the 2D Wigner distribution of a complex function.

Download Now | Watch this File

File Information
Description

W = mywigner(Ex)

W = output Wigner distribution
Ex = Input electric field (MUST be a column vector

Notes:
W = Int(-inf..inf){E(x+y)E(x-y)exp[2ixy]}
E(x+y) & E(x-y) are calculated via a FFT (fast Fourier transform) using the
shift theorem. The integration is performed via a FFT. Thus it is important for the data to satisfy the sampling theorem:
dy = 2*pi/X X = span of all x-values dy = y resolution
dx = 2*pi/Y Y = span of all y-values dx = x resolution
The data must be completely contained within the range x(0)..x(N-1) & y(0)..y(N-1) (i.e. the function must fall to zero within this range).

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
13 Aug 2007 ashutosh singh  
19 May 2008 kim ngan tran  
13 Jul 2008 Herliyani Hasanah

Very good

23 Nov 2008 VictorF Dios

The user has to add a multiplication for incr_x in order to preserve the energy of the signal.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
chemistry Adam Wyatt 22 Oct 2008 09:19:50
physics Adam Wyatt 22 Oct 2008 09:19:50
wigner function distribution Adam Wyatt 22 Oct 2008 09:19:50
fourier Adam Wyatt 22 Oct 2008 09:19:50
electric field Adam Wyatt 22 Oct 2008 09:19:50
2d Adam Wyatt 22 Oct 2008 09:19:50
wigner function distribution Vittorio 30 Mar 2009 10:29:11
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com