cs=ebsd ('Magnesium').CS
delta= ebsd('Magnesium').orientations*Miller(0,0,0,1,cs);%calculate the angles between the two
ang=angle(dir, delta,'antipodal')/degree;
%and plot a histogram
figure;histogram(ang);
The manual can be found online at https://www.researchgate.net/profile/Jessica_Hiscocks scroll down to 'Featured research'.
As for your second question
% Define Cartesian Tensor crystal symmetry & frameCS = crystalSymmetry('m-3m',[3.6599 3.6599 3.6599],[90.0000 90.0000 90.0000]*degree,'x||a','z||c','mineral','Iron fcc');--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.
% M as stiffness tensor CC = tensor(M,CS);% orientations of phase q from ebsd
go=grains(1).meanOrientation;% rotate the compression direction which is xvector in this case, into crystal coordiantes
yc=inv(go).*xvector;% young's modulous parallal xvectorYy =YoungsModulus(C,yc);
% now you can for example plot itplot(grains(1),Yy)% Define Cartesian Tensor crystal crystalSymmetry & framecs_Tensor = crystalSymmetry('m-3m',[ 2.874 2.874 2.874],... [ 90.0000 90.0000 90.0000]*degree,'x||a','z||c',... 'mineral','Alpha-Iron');CS = crystalSymmetry('m-3m', [3.6599 3.6599 3.6599], 'mineral', 'Iron fcc', 'color', 'light blue')Warning: Symmetry missmatch! The following crystal framesseem to be different
Iron fcc (m-3m) and Iron fcc (m-3m) > In orientation/transformReferenceFrame (line 34) In Test_01 (line 407) % set some colormap well suited for tensor visualisationsetMTEXpref('defaultColorMap',blue2redColorMap);figureplot(C,'PlotType','YoungsModulus','complete','upper');mtexColorbar