Matlab Routines for Crystal Analysis

- Peter Schall (2005)-

This site provides Matlab Routines that are useful for analyzing defects in fcc crystals. The routines can be used to create an ideal fcc lattice, to visualize the lattice, to calculate and visualize the strain field of a distorted fcc lattice, and to highlight stacking faults in the lattice. The routines are easy to use. All you need is a set of coordinates of fcc crystal lattice points. If you donīt have one, use the routine “fcclattice.m” to create a set of lattice points. That should help you get started. I have used the routines below to study defects in fcc crystals of colloidal particles; the three-dimensional coordinates of these particle were determined by confocal microscopy.
(See, for example Science 305,1944 (2004))

Please read a short Tutorial to learn how to use the routines below.

GOOD LUCK!

Peter.

The routines are free to use. Please click to download.

Create an fcc lattice
fcclattice.m
rotate_z.m

Visualize the strain field
strainfield.m
averagestrainfield.m

showbeadscolorcoded.m

Show the crystal lattice
showbeads.m

Find stacking faults
NNscalarproduct.m
showdefects.m

Download all of the routines: MatlabCrystalRoutines.zip

If you have further questions or comments, please contact me:
pschall@science.uva.nl