This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 2 3];
y_correct = '123';
assert(isequal(your_fcn_name(x),y_correct))
ans =
123
|
2 | Pass |
%%
x = [8 9 2 6];
y_correct = '8926';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
ans =
8926
|
3 | Pass |
%%
x = [1 4 2];
y_correct = '142';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
ans =
142
|
4 | Pass |
%%
x = [3 5 2 6 3];
y_correct = '35263';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
ans =
35263
|
5 | Pass |
%%
x = [7 7 5 1];
y_correct = '7751';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
ans =
7751
|
6 | Pass |
%%
x = [9 2];
y_correct = '92';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
ans =
92
|
7 | Pass |
%%
x = [5 9 1 4 1];
y_correct = '59141';
y = your_fcn_name(x);
assert(isequal(y_correct,y))
ans =
59141
|
2183 Solvers
1598 Solvers
Determine Whether an array is empty
646 Solvers
365 Solvers
270 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!