function angl=fixatan2(x,y) %Similar to the atan2 function, FIXATAN2(x,y) returns %the angle (in degrees, between 0 and 360) of the point %(x,y). Note that the function MOD is required. angl=mod((180/pi)*atan2(y,x),360);