Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 1.33;
y_correct = [1 1 3];
assert(isequal(MixedFraction(x),y_correct))
x =
0.3300
ans =
0×2 empty double matrix
|
2 | Fail |
x = 1.66;
y_correct = [1 2 3];
assert(isequal(MixedFraction(x),y_correct))
x =
0.6600
ans =
0×2 empty double matrix
|
3 | Fail |
x = 2.33;
y_correct = [1 4 3];
assert(isequal(MixedFraction(x),y_correct))
x =
1.3300
ans =
0×2 empty double matrix
|
4 | Fail |
x = 2.25;
y_correct = [1 5 4];
assert(isequal(MixedFraction(x),y_correct))
x =
1.2500
ans =
0×2 empty double matrix
|
5 | Fail |
x = 2.28;
y_correct = [1 9 7];
assert(isequal(MixedFraction(x),y_correct))
x =
1.2800
ans =
0×2 empty double matrix
|
6 | Fail |
x = 2.00;
y_correct = [1 5 5];
assert(isequal(MixedFraction(x),y_correct))
x =
1
ans =
1 6
1 7
1 8
1 9
|
9819 Solvers
Find the peak 3n+1 sequence value
1107 Solvers
337 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
379 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!