Cody

Problem 43887. Radians to Degrees

Solution 2329443

Submitted on 22 May 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
R = pi/2; D_correct =90; assert(isequal(RAD2DEG(R),D_correct))

D = 90.0000

Assertion failed.

2   Fail
R = pi; D_correct = 180; assert(isequal(RAD2DEG(R),D_correct))

D = 180.0000

Assertion failed.

3   Fail
R = 2*pi; D_correct = 360; assert(isequal(RAD2DEG(R),D_correct))

D = 360.0000

Assertion failed.

4   Fail
R = 3*pi; D_correct = 540; assert(isequal(RAD2DEG(R),D_correct))

D = 540.0000

Assertion failed.

Suggested Problems

More from this Author7