%% Quat from rot angle and rot sequence
%% Quaternion from rotation angles and rotation sequence
% Determine the quaternion from rotation angles and rotation sequence.

yaw = [0.7854 0.5]; 
pitch = [0.1 0.3]; 
roll = [0 0.1];
q = angle2quat(pitch, roll, yaw, 'YXZ')

% Copyright 2012 The MathWorks, Inc.