rotate

(method of EBSD)

rotate EBSD orientations or spatial data around point of origin

Syntax

% roate the whoole data set about the z-axis by 90*degree
ebsd = rotate(ebsd,10*degree)
% rotate about the x-axis
ebsd = rotate(ebsd,rotation.byAxisAngle(xvector,180*degree))
% rotate only the spatial data
ebsd = rotate(ebsd,180*degree,'keepEuler')
% rotate about a specific point
ebsd = rotate(ebsd,180*degree,'center',[0,0])

Input

ebsd

EBSD

angle

double

q

quaternion

param,val Parameters and values that control rotate
Parameter Description
'center'

[x,y] center of rotation, default is center of the map

param Options that control the rotate behavior
Parameter Description
'keepXY'

rotate only the orientation data, i.e. the Euler angles

'keepEuler'

rotate only the spatial data, i.e., the x,y, and z values

Output

ebsd

EBSD