structure factor
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |