%% Determine quat2
%% Determine quat2
% Determine the quaternions from multiple direction cosine matrices.

dcm        = [ 0 1 0; 1 0 0; 0 0 1]; 
dcm(:,:,2) = [ 0.4330    0.2500   -0.8660; ...
               0.1768    0.9186    0.3536; ...
               0.8839   -0.3062    0.3536];
q = dcm2quat(dcm)

% Copyright 2015 The MathWorks, Inc.