Here you can download the zip file that contains all files that are necessary for running the different programs:

matlab.zip

you can also download each of the files separatly:

bragg_planes.m

bragg_scattering1.m

ewald.m

I_teta_graph_func.m

rotate1.m

scanning_angles_func.m

triangle.m

two_waves.m

vector4.m

Type in the command window:

angel - the relative phase in degrees

This function scans angles for selected bragg plane

Type in the command window:

h,f - components of G vector (for G=(1,2) : h=1 , f=2)

d_teta - the intervals between each angle (in degrees)

Example: if you want to see visualization of direction G=(1,1) from 10

This function plots graph of I vs. θ

Type in the command window:

d - the distance between two bragg planes

λ - the wavelenght of the diffracting wave

Example: if you want to see plot of direction d=3 and λ=2 write in command window :

k- the wave number (k=2*π/λ)

Example: if you want to see visualization of scanning G vectors for k=5 type in the command window :

All the programs are functions in matlab so in order to operate them you need to:

- open the zip file in yours matlab work directory
- write in the matlab command window the appropriate function with the right arguments

- donwload the 9 files to your matlab work directory
- write in the matlab command window the appropriate function with the right arguments

[Computational Physics Group] |