%% Rotate Two 1-by-3 Vectors by a 1-by-4 Quaternion
% This example shows how to rotate two 1-by-3 vectors by a 1-by-4 quaternion.

q = [1 0 1 0];
r = [1 1 1; 2 3 4];
n = quatrotate(q, r)

% Copyright 2012 The MathWorks, Inc.