R2012b atan in Degrees - MATLAB Cody - MATLAB Central

Problem 940. R2012b atan in Degrees

Difficulty:Rate

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

53.01% Correct | 46.99% Incorrect
Last Solution submitted on Apr 28, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers72

Suggested Problems

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!
Go to top of page