export edit page

export quaternions to a ascii file

Syntax

fname = 'fileName.txt'
export(ori,fname)
export(ori,fname,'radians','Bunge')
fit ellipses to grains and store halfaxes and orientation in a struct
[S.angle,S.a,S.b] = fitEllipse(grains);
% store area
S.area = grains.area;
% export orientation and custom data
export(grains.meanOrientation,fname,S)

Input

q quaternion
fname filename
S struct containing additional properties to be exported

Options

quaternion export quaternion values
Bunge export Bunge Euler angles (default)
Matthies export Matthies Euler angles (alpha beta gamma)
degree output in degree (default, unless 'quaternion' is passed)
radians output in radians