Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 2;
A_correct = 2;
assert(isequal(your_fcn_name(n),A_correct))
|
2 | Pass |
n = 3;
A_correct = [2 3];
assert(isequal(your_fcn_name(n),A_correct))
|
3 | Pass |
n = 4;
A_correct = [2 3 4];
assert(isequal(your_fcn_name(n),A_correct))
|
4 | Pass |
n = 5;
A_correct = [2 3 4 5];
assert(isequal(your_fcn_name(n),A_correct))
|
5 | Pass |
n = 10;
A_correct = [2 3 4 5 6 8 9 10];
assert(isequal(your_fcn_name(n),A_correct))
|
6 | Pass |
n = 17;
A_correct = [2 3 4 5 6 8 9 10 12 15 16];
assert(isequal(your_fcn_name(n),A_correct))
|
7 | Fail |
n = 31;
A_correct = [2 3 4 5 6 8 9 10 12 15 16 18 20 24 25 27 30];
assert(isequal(your_fcn_name(n),A_correct))
|
Return the 3n+1 sequence for n
6167 Solvers
Remove all the words that end with "ain"
1292 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Basics: 'Find the eigenvalues of given matrix
322 Solvers
489 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!