-
Nicola Vigano authored
Signed-off-by:
Laura Nervo <laura.nervo@esrf.fr> git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@154 4c865b51-4357-4376-afb4-474e03ccb993
Nicola Vigano authoredSigned-off-by:
Laura Nervo <laura.nervo@esrf.fr> git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@154 4c865b51-4357-4376-afb4-474e03ccb993
grainorientations.m 337 B
r1=gtAllGrainValues(grain,'R_vector',[],1);
r2=gtAllGrainValues(grain,'R_vector',[],2);
r3=gtAllGrainValues(grain,'R_vector',[],3);
R=[];
RR=[];
for i=1:length(grain)
RR=Rod2g([r1(i) r2(i) r3(i)]);
R(i,:)=RR(:,1)';
end
Z=zeros(length(grain),1);
figure
quiver3(Z,Z,Z,R(:,1),R(:,2),R(:,3))
axis equal
figure
hist(R(:,1))