Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
D = 180;
R_correct = pi;
assert(isequal(DEG2RAD(D),R_correct))
R =
3.1416
|
2 | Pass |
D = 360;
R_correct = 2*pi;
assert(isequal(DEG2RAD(D),R_correct))
R =
6.2832
|
3 | Pass |
D = 90;
R_correct = pi/2;
assert(isequal(DEG2RAD(D),R_correct))
R =
1.5708
|
4 | Pass |
D = 540;
R_correct = 3*pi;
assert(isequal(DEG2RAD(D),R_correct))
R =
9.4248
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13051 Solvers
The Hitchhiker's Guide to MATLAB
2874 Solvers
620 Solvers
302 Solvers
147 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!