Unlike most other texture analysis software MTEX does not have any graphical user interface. Instead the user is suposed to write scripts. Those scripts usually have the following structure
- import data
- inspect the data
- correct the data
- analyze the data
- plot and export the results of the analysis
During all these steps the data are stored as variables of different type. There are many different types of variables (called classes) for different objects, like vectors, rotations, EBSD data, grains or ODFs. A complete list of all classes and all functions can be found in the Function Reference.
Variables are generated automatically when data are imported. E.g., the commands
imports data from the file fileName.ctf
and stores them in the variable ebsd
of type EBSD
.
Next one can pass the variable ebsd
to different MTEX function. E.g. to plot a phase plot one simply does
The grain structure is reconstructed by the command
which returns a new variable of type grain2d
, here called grains
. This variable contains the entire grain structure. Finally, we my visualize this structure by
An MTEX script is a sequence of MTEX commands. Usually, these are accompanied by comments (lines starting with %
), describing the purpose of each command and making the script understandable in the future. It is also good practice to subdivide MTEX scripts into sections by adding lines starting with %%
and executing those scripts only section by section Shift Strg Enter
.