I was trying to save the misorientation information of grain boundary in the type of .txt or .csv
The EBSD data and code were attached. The code is to plot the misorientation of grain boundaries within 5 degree of a specific rotation (110)/30 degree. I would like to extract the misorientation information of those grain boundaries such as euler angles, etc. How would I do it? I tried fprintf(fileID, gB_Ce(ind)). It seems not working.
cs = ebsd('Ce O2').CS;
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd('Ce O2'),'angle',0.5*degree);
gB=grains.boundary;
gB_Ce = grains.boundary('Ce O2','Ce O2');
rot = rotation('axis',vector3d(1,1,0),'angle',30*degree,cs);
ind = angle(gB_Ce.misorientation,rot)<5*degree;
close all
plot(gB,'micronbar','off')
hold on
plot(gB_Ce(ind),'lineWidth',2.5,'lineColor','r')