%% Calculate the Power of Quaternion
% This example shows how to calculate the power of 2 of quaternion q = [1.0 0 1.0 0].

qp = quatpower(quatnormalize([1.0 0 1.0 0]),2)

% Copyright 2012 The MathWorks, Inc.