Create getAngle.m