%% Determine the division of a 2-by-4 quaternion
% This example shows determine the division of a 2-by-4 quaternion by a 1-by-4 quaternion.

q = [1 0 1 0; 2 1 0.1 0.1];
r = [1 0.5 0.5 0.75];
d = quatdivide(q, r)

% Copyright 2012 The MathWorks, Inc.