Create avg_quaternion_markley.m