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 =
1 3
2 6
3 9
|
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 =
0×2 empty double matrix
|
1421 Solvers
17128 Solvers
Compute a dot product of two vectors x and y
750 Solvers
302 Solvers
Mysterious digits operation (easy)
136 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!