Code covered by the BSD License  

Highlights from
structure factor

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 2.46 KB File ID: #31329
image thumbnail

structure factor

by ben payne

 

05 May 2011

Calculate structure factor based on positions of scatterers in real-space.

| Watch this File

File Information
Description

Calculate structure factor based on positions of scatterers in real-space. Functions for one and two dimensions.

You supply system size and scatterer positions on a integer lattice, function returns structure factor and momentum-space coordinates for plotting. Two or three dimensional plot is also created with appropriate axis labels.

See
http://en.wikipedia.org/wiki/Structure_factor
for more background.

Calculations for systems with length larger than 100 take a long time since loops are not vectorized. This is because the purpose is educational rather than for use with data from actual experiments.

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
physics ben payne 05 May 2011 14:38:55
scattering ben payne 05 May 2011 14:38:55
structure ben payne 05 May 2011 14:38:55
structure factor ben payne 05 May 2011 14:38:55
plot ben payne 05 May 2011 14:38:55

Contact us at files@mathworks.com