Toolbox: X-ray Refraction of Matter

A function to calculate material properties interacted with x-rays.
2K Downloads
Updated 13 Oct 2004

View License

Function REFRAC returns material properties interacted with x-rays.

refrac('Formula',energy,massdensity) gives refraction in terms of disperion(delta) and absorption(beta), as well as critical angle and attenuation length corresponding to the input energy. Also a plot of these properties is given.

For example:
>>result=refrac('Si3N4',8.04778,3.44)
result =
formula: 'Si3N4'
massDensity: 3.44
eletronDensity: 1.4767e+028
energy: 8.0478
wavelength: 1.5406e-010
dispersion: 1.1164e-005
absorption: 1.6477e-007
criticalAngle: 0.27074
attLength: 7.4403e-005

Unzip xrayrefraction.zip to matlabroot/toolbox and add
matlabroot/toolbox/xrayrefraction to the path search directories.

Cite As

Zhang Jiang (2024). Toolbox: X-ray Refraction of Matter (https://www.mathworks.com/matlabcentral/fileexchange/6026-toolbox-x-ray-refraction-of-matter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Atomic, Molecular & Optical 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

Corrected bugs in calculating the electron density.