Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 0;
y_correct = 0;
assert(isequal(your_fcn_name(x),y_correct))
y =
0
|
2 | Pass |
%%
x = 215;
y_correct = 6;
assert(isequal(your_fcn_name(x),y_correct))
y =
6
|
3 | Pass |
%%
x = 1:100;
y_correct = [1 1 2 1 2 2 3 1 2 2 3 2 3 3 4 1 2 2 3 2 3 3 4 2 3 3 4 3 4 4 5 1 2 2 3 2 3 3 4 2 3 3 4 3 4 4 5 2 3 3 4 3 4 4 5 3 4 4 5 4 5 5 6 1 2 2 3 2 3 3 4 2 3 3 4 3 4 4 5 2 3 3 4 3 4 4 5 3 4 4 5 4 5 5 6 2 3 3 4 3];
assert(isequal(your_fcn_name(x),y_correct))
y =
Columns 1 through 16
1 1 2 1 2 2 3 1 2 2 3 2 3 3 4 1
Columns 17 through 32
2 2 3 2 3 3 4 2 3 3 4 3 4 4 5 1
Columns 33 through 48
2 2 3 2 3 3 4 2 3 3 4 3 4 4 5 2
Columns 49 through 64
3 3 4 3 4 4 5 3 4 4 5 4 5 5 6 1
Columns 65 through 80
2 2 3 2 3 3 4 2 3 3 4 3 4 4 5 2
Columns 81 through 96
3 3 4 3 4 4 5 3 4 4 5 4 5 5 6 2
Columns 97 through 100
3 3 4 3
|
4 | Pass |
%%
x = magic(10);
y_correct = [ 4 4 1 1 4 3 3 4 4 2
3 2 3 3 1 3 5 4 1 3
1 3 3 2 3 4 3 6 3 5
4 5 3 3 2 4 5 3 4 3
4 5 3 1 2 5 2 4 3 2
2 2 3 4 4 3 3 3 2 2
4 2 3 4 5 2 4 1 4 2
5 2 3 6 3 4 5 3 4 2
2 2 5 2 4 3 3 3 4 4
3 2 3 4 3 2 4 3 4 5 ];
assert(isequal(your_fcn_name(x),y_correct))
y =
4 4 1 1 4 3 3 4 4 2
3 2 3 3 1 3 5 4 1 3
1 3 3 2 3 4 3 6 3 5
4 5 3 3 2 4 5 3 4 3
4 5 3 1 2 5 2 4 3 2
2 2 3 4 4 3 3 3 2 2
4 2 3 4 5 2 4 1 4 2
5 2 3 6 3 4 5 3 4 2
2 2 5 2 4 3 3 3 4 4
3 2 3 4 3 2 4 3 4 5
|
4331 Solvers
Basics: 'Find the eigenvalues of given matrix
323 Solvers
404 Solvers
483 Solvers
Number of digits in an integer
336 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!