Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3];
y_correct = '123';
assert(isequal(your_fcn_name(x),y_correct))
y =
100
y =
120
y =
123
|
2 | Pass |
x = [7 8 8 0 3];
y_correct = '78803';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
y =
70000
y =
78000
y =
78800
y =
78800
y =
78803
|
3 | Pass |
x = [8 4];
y_correct = '84';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
y =
80
y =
84
|
4 | Pass |
x = [1 2 1 1 8 5];
y_correct = '121185';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
y =
100000
y =
120000
y =
121000
y =
121100
y =
121180
y =
121185
|
5 | Pass |
x = [1 8 6 3];
y_correct = '1863';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
y =
1000
y =
1800
y =
1860
y =
1863
|
6 | Pass |
x = [4 0 2 1];
y_correct = '4021';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
y =
4000
y =
4000
y =
4020
y =
4021
|
7 | Pass |
x = [2 4];
y_correct = '24';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
y =
20
y =
24
|
8 | Pass |
x = 9;
y_correct = '9';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
y =
9
|
Determine whether a vector is monotonically increasing
11915 Solvers
376 Solvers
177 Solvers
Number of odd and even elements within matrix
124 Solvers
168 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!