Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3 4 5 6 7 8 9];
y_correct = 0;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
2 | Pass |
x = [6 0 2 3 4 5 7 8 9];
y_correct = 1;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
3 | Pass |
x = [6 7 8 1 0 3 4 5 9];
y_correct = 2;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
4 | Pass |
x = [7 8 1 5 6 9 2 0 4];
y_correct = 3;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
5 | Pass |
x = [0 1 9 2 6 7 8 3 5];
y_correct = 4;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
6 | Pass |
x = [6 7 1 2 8 9 3 0 4];
y_correct = 5;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
7 | Pass |
x = [9 8 7 5 4 3 2 1 0];
y_correct = 6;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
8 | Pass |
x = [2 1 3 0 8 4 9 5 6];
y_correct = 7;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
9 | Pass |
x = [9 1 5 6 7 0 3 2 4];
y_correct = 8;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
10 | Pass |
x = [ 3 5 7 8 0 4 6 1 2];
y_correct = 9;
assert(isequal(your_fcn_name(x),y_correct))
t =
1 2 3 4 5 6 7 8 9
|
27996 Solvers
Find relatively common elements in matrix rows
865 Solvers
1262 Solvers
173 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!