angle output vs. atan2 output

17 views (last 30 days)
David C
David C on 21 Feb 2015
Edited: Roger Stafford on 21 Feb 2015
Is atan2(Y,X) exactly the same as angle(X+1i*Y)?

Accepted Answer

Roger Stafford
Roger Stafford on 21 Feb 2015
Edited: Roger Stafford on 21 Feb 2015
Yes, they should be the same, provided that X and Y are real numbers or real arrays.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!