%% Normalize quaternion
% This example shows how to normalize q = [1 0 1 0].

normal = quatnormalize([1 0 1 0])

% Copyright 2012 The MathWorks, Inc.