Toolbox: X-ray Refraction of Matter
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
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.
xrayrefraction/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Corrected bugs in calculating the electron density. |