Archive for the ‘Matlab’ Category

Part III: Matlab Function for Xpert XRD Reciprocal Space Mapping

Thursday, October 9th, 2008

A series of MATLAB functions will follow. Some of these “.m” files call each other, so ensure you have all of them before you start.

The purpose of this file is to load in all the .x00 files in a directory of Omega-Omega-2-Theta slices for reciprocal space mapping of a sample. “OmegAxis” determines the scale for the Omega axis (y) for reciprocal space mapping. [again, this is not yet in Q-space, that will come at a later date]

The first function loads data into your workspace for a directory of .x00 files that have a common base filename. The user needs to supply the first index number and last index number for loading the files. The program then attempts to load “filenameIndex.x00″ in a linear fashion for all .x00 files of that filename indexed in the cd’d directory. [Change directory to the working directory needed before starting this function.]

(more…)

Part II: Matlab XRD- reciprocal space maps from XPert XRD files (.x00)

Wednesday, October 8th, 2008

A series of MATLAB functions will follow. Some of these “.m” files call each other, so ensure you have all of them before you start.

The purpose of this file is to load in all the .x00 files in a directory of Omega-Omega-2-Theta slices for reciprocal space mapping of a sample. Please note that as of this writing, the data has not yet been converted to Q-space.

The first function loads data into your workspace for a directory of .x00 files that have a common base filename. The user needs to supply the first index number and last index number for loading the files. The program then attempts to load “filenameIndex.x00″ in a linear fashion for all .x00 files of that filename indexed in the cd’d directory. [Change directory to the working directory needed before starting this function.]

(more…)

Intro to Multipart Post: Reciprocal Space Mapping (XRD) for XPert in MATLAB

Tuesday, October 7th, 2008

There will be a number of posts following this one that will attempt to recreate reciprocal space mapping in MATLAB. The functions that will be posted in the coming days read in .x00 files from the Philips XPert XRD system and try to recreate the slices of Omega Omega-2Theta scans produced for reciprocal space mapping.

Currently I haven’t changed the data into Q-space, so they will be reported in Omega -v- Omega2Theta space.

An example call to the function is:

DisplayQSpace1('',9,184);

Example output of the function(s):

Example Omega Omega2Theta plot

Part I: MATLAB Functions for Philips XPert XRD Files

Tuesday, October 7th, 2008

I decided here and there to publish various MATLAB functions I’ve written for my own work. There’s just one caveat- each one of these is a serious work in progress. In fact, they may not progress much more than what is disclosed here since they get the job done for me.

But, I felt that this likely would help a few people who are trying to do the same type of thing, and I’d rather ease those who come after me, and give them a slight step ahead if possible.

For those of you with old version of the Philips XPert XRD software (specifically those who can’t output in XRDML files), I offer a crude import function for simple scans.

(more…)