MATLAB: Angle output vs. atan2 output

angleatan2inverse taninverse tangentMATLAB

Is atan2(Y,X) exactly the same as angle(X+1i*Y)?

Best Answer

  • Yes, they should be the same, provided that X and Y are real numbers or real arrays.