structure factor

Version 1.0.0.0 (2.46 KB) by ben payne
Calculate structure factor based on positions of scatterers in real-space.
897 Downloads
Updated 5 May 2011

View License

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.

Cite As

ben payne (2024). structure factor (https://www.mathworks.com/matlabcentral/fileexchange/31329-structure-factor), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Scatter Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0