Cody

Solution 1167868

Submitted on 22 Apr 2017
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))

Undefined function 'radtodeg' for input arguments of type 'double'. Error in RAD2DEG (line 2) radtodeg(R); Error in TestPoint1 (line 3) assert(isequal(RAD2DEG(R),D_correct))

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

Undefined function 'radtodeg' for input arguments of type 'double'. Error in RAD2DEG (line 2) radtodeg(R); Error in TestPoint2 (line 3) assert(isequal(RAD2DEG(R),D_correct))

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

Undefined function 'radtodeg' for input arguments of type 'double'. Error in RAD2DEG (line 2) radtodeg(R); Error in TestPoint3 (line 3) assert(isequal(RAD2DEG(R),D_correct))

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

Undefined function 'radtodeg' for input arguments of type 'double'. Error in RAD2DEG (line 2) radtodeg(R); Error in TestPoint4 (line 3) assert(isequal(RAD2DEG(R),D_correct))

Suggested Problems

More from this Author7