%% Rotate Multiple Vectors by Multiple Quaternions
% This example shows how to rotate multiple vectors by multiple quaternions.

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

% Copyright 2012 The MathWorks, Inc.