Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 7;
y_correct = 17/11;
assert(isequal(your_fcn_name(x),y_correct))
y =
1.5455
|
2 | Pass |
x = 8;
y_correct = 17/11;
assert(isequal(your_fcn_name(x),y_correct))
y =
1.5455
|
3 | Pass |
x = 9;
y_correct = 17/11;
assert(isequal(your_fcn_name(x),y_correct))
y =
1.5455
|
4 | Pass |
x = 12;
y_correct = 28/38;
assert(isequal(your_fcn_name(x),y_correct))
y =
0.7368
|
5 | Pass |
x = 20;
y_correct = 77/113;
assert(isequal(your_fcn_name(x),y_correct))
y =
0.6814
|
6 | Pass |
x = 31;
y_correct = 160/336;
assert(isequal(your_fcn_name(x),y_correct))
y =
0.4762
|
7 | Pass |
x = 32;
y_correct = 160/336;
assert(isequal(your_fcn_name(x),y_correct))
y =
0.4762
|
8 | Pass |
x = 42;
y_correct = 238/623;
assert(isequal(your_fcn_name(x),y_correct))
y =
0.3820
|
Find the numeric mean of the prime numbers in a matrix.
6781 Solvers
Return the 3n+1 sequence for n
6167 Solvers
Back to basics 11 - Max Integer
678 Solvers
3064 Solvers
359 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!