%% Rotate a 1-by-3 Vector
% This example shows how to rotate a 1-by-3 vector by a 1-by-4 quaternion.

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

% Copyright 2012 The MathWorks, Inc.