Dear Dr. Hielscher:
.mat is attached.
odf1 and odf2 are visualized.
However, the maximum orientation does not always correspond to the pole with max intensity in the pole figure.
In addition, [maxODF2,centerODF2] = max(odf2,6,'resolution',4*degree)
the results are dependent on resolution. Does the resolution need to be associated with the half width of the odf?
and the result in centerODF2 is not sorted according to the intensity in maxODF2.
How maxium orientation are annotated are as follows.
Many thanks for your time and help!!
Rongpei
setMTEXpref('textInterpreter','latex')
figure('position',[100,100,640,480])
plotpdf(odf1,[Miller(1,0,1),Miller(-1,1,1),Miller(-1,-2,1)],'antipodal','silent')%,'minmax', 'off')
[maxODF1,centerODF1] = max(odf1,6,'resolution',4*degree);
[Y1,Index1]=max(maxODF1);
[modes1, values] = calcModes(odf1,1) %[modes, values] = calcModes(odf1,5,'resolution',0.2*degree) /takes time
%centerODF1 = calcModes(odf1);
plotx2south
psi = kernel('de la Vallee Poussin','HALFWIDTH',4*degree)
setMTEXpref('textInterpreter','latex')
figure('position',[100,100,640,480])
plotpdf(odf2,[Miller(0,0,0,1),Miller(1,1,-2,0),Miller(-1,1,0,0)],'antipodal','silent')
[maxODF2,centerODF2] = max(odf2,6,'resolution',4*degree)
[Y2,Index2]=max(maxODF2);
[modes, values] = calcModes(odf2,1,'resolution',4*degree)
%centerODF2 = calcModes(odf2);
plotx2south
% centerODF2(Index2)4
annotate(centerODF2(Index2),'label','$q_0$','marker','s','MarkerSize',5,'MarkerFaceColor','r','color','r')
% annotate([xvector,yvector,zvector],'label',{'X','Y','Z'},...
% 'BackgroundColor','w');
annotate([xvector,yvector,zvector],'label',{'X','Y','Z'},'fontname','Times','backgroundcolor','w');
set(gcf,'PaperpositionMode','Auto')
print(gcf,'-depsc2','-cmyk','-r300','-painters','alphaodf12simw.eps');