Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1;
y_correct = {'1'};
assert(isequal(naturalnumbers(x),y_correct))
ans =
{}
ans =
'1'
|
2 | Pass |
%%
x = 11;
y_correct = {'1','2','3','4','5','6','7','8','9','10','11'};
assert(isequal(naturalnumbers(x),y_correct))
ans =
{}
ans =
'1'
ans =
'1' '2'
ans =
'1' '2' '3'
ans =
'1' '2' '3' '4'
ans =
'1' '2' '3' '4' '5'
ans =
'1' '2' '3' '4' '5' '6'
ans =
'1' '2' '3' '4' '5' '6' '7'
ans =
'1' '2' '3' '4' '5' '6' '7' '8'
ans =
'1' '2' '3' '4' '5' '6' '7' '8' '9'
ans =
'1' '2' '3' '4' '5' '6' '7' '8' '9' '10'
ans =
'1' '2' '3' '4' '5' '6' '7' '8' '9' '10' '11'
|
Return the largest number that is adjacent to a zero
3749 Solvers
Back to basics 11 - Max Integer
678 Solvers
251 Solvers
Find the largest value in the 3D matrix
1056 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3609 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!