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
|
2 | Fail |
x = 1.66;
y_correct = [1 2 3];
assert(isequal(MixedFraction(x),y_correct))
x =
0.6600
|
3 | Fail |
x = 2.33;
y_correct = [1 4 3];
assert(isequal(MixedFraction(x),y_correct))
x =
1.3300
|
4 | Pass |
x = 2.25;
y_correct = [1 5 4];
assert(isequal(MixedFraction(x),y_correct))
x =
1.2500
y =
1 5 4
|
5 | Pass |
x = 2.28;
y_correct = [1 9 7];
assert(isequal(MixedFraction(x),y_correct))
x =
1.2800
y =
1 9 7
|
6 | Pass |
x = 2.00;
y_correct = [1 5 5];
assert(isequal(MixedFraction(x),y_correct))
x =
1
q =
5 5
y =
1 5 5
|
Back to basics 22 - Rotate a matrix
763 Solvers
Who has power to do everything in this world?
318 Solvers
Convert a Cell Array into an Array
429 Solvers
2334 Solvers
664 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!