structure factor

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

You are now following this Submission

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 (2026). structure factor (https://www.mathworks.com/matlabcentral/fileexchange/31329-structure-factor), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0