I directly use the MTEX toolbox. I first ran the install_mtex.m file, then I imported the pole figure data using the Import Wizard. After completion, the following code was automatically generated:
%% Import Script for PoleFigure Data
%
% This script was automatically created by the import wizard. You should
% run the whoole script or parts of it in order to import your data. There
% is no problem in making any changes to this script.
%% Specify Crystal and Specimen Symmetries
% crystal symmetry
CS = crystalSymmetry('112/m', [1 1 1], [90,90,90]*degree, 'X||a', 'Y||b', 'Z||c', 'color', 'light blue');
% specimen symmetry
SS = specimenSymmetry('1');
% plotting convention
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','outOfPlane');
%% Specify File Names
% path to files
pname = 'E:\CPFE_Modeling\twoelesetsdy';
% which files to be imported
fname = [pname '\texture_processed_One grainoneor.txto'];
%% Specify Miller Indice
h = { ...
Miller(1,0,0,CS),...
};
%% Import the Data
% create a Pole Figure variable containing the data
pf = loadPoleFigure(fname,h,CS,SS,'interface','generic',...
'ColumnNames', { 'Polar Angle' 'Azimuth Angle' 'Intensity' 'Background' 'Defocussing' 'Defocussing Background'}, 'Columns', [1 2 3 4 5 6]);
figure
plot(pf,'MarkerSize',4)
mtexColorbar
I can not figure out what is the problem with my current code. Can you be kind enough to tell me what my problem is? I am not sure why I am using the import wizard correctly.
Thanks.
Qinghua Wang