Return in degrees the atan result of inputs for all four quadrants.
Examples:
[x, y] Degrees 1 0 0 1 1 45 -1 1 135 -1 -1 -135 1 -1 -45 -1 0 -180 0 -1 -90
Input: [ x , y ]
Output: Angle : Degrees [ 0:180 ] ( -180:0 ) -180 is not a valid return value
Note: Input to atan2 is Y , X not X , Y
Matlab Whatsnew
R2012b Update Note
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers73
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15782 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1995 Solvers
-
Sum all integers from 1 to 2^n
17465 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
683 Solvers
-
705 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!