sort orientations into clusters
[c,center] = calcCluster(ori,'halfwidth',2.5*degree) [c,center] = calcCluster(ori,'numCluster',n,'method','hierarchical') [c,center] = calcCluster(ori,'maxAngle',omega,'method','hierarchical')
% generate orientation clustered around 5 centers cs = crystalSymmetry('432'); center = orientation.rand(5,cs); odf = unimodalODF(center,'halfwidth',5*degree) ori = odf.discreteSample(1500);
odf = SO3FunRBF (432 → xyz) multimodal components kernel: de la Vallee Poussin, halfwidth 5° center: 5 orientations Bunge Euler angles in degree phi1 Phi phi2 weight 59.927 27.0708 31.6121 0.2 101.695 14.0102 21.7888 0.2 344.588 59.6312 122.008 0.2 117.206 64.0876 65.9505 0.2 63.3273 110.908 214.964 0.2
% find the clusters and its centers [cId,centerRec] = calcCluster(ori,'silent');
% visualize result for i = 1:length(centerRec) plot(ori(cId==i),'axisAngle') hold on plot(centerRec(i),'MarkerFaceColor','k','MarkerSize',15) end hold off