Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = 1;
iterations = 4;
y_correct = [1 3 7 15 31];
assert(isequal(your_fcn_name(A,iterations),y_correct))
A =
1
A =
1 3
A =
1 3 7
A =
1 3 7 15
A =
1 3 7 15 31
y =
1 3 7 15 31
|
2 | Pass |
A = 1;
iterations = 10;
y_correct = [1 3 7 15 31 63 127 255 511 1023 2047];
assert(isequal(your_fcn_name(A,iterations),y_correct))
A =
1
A =
1 3
A =
1 3 7
A =
1 3 7 15
A =
1 3 7 15 31
A =
1 3 7 15 31 63
A =
1 3 7 15 31 63 127
A =
1 3 7 15 31 63 127 255
A =
1 3 7 15 31 63 127 255 511
A =
1 3 7 15 31 63 127 255 511 1023
A =
1 3 7 15 31 63 127 255 511 1023 2047
y =
1 3 7 15 31 63 127 255 511 1023 2047
|
3 | Pass |
A = 2;
iterations = 10;
y_correct = [2 5 11 23 47 95 191 383 767 1535 3071];
assert(isequal(your_fcn_name(A,iterations),y_correct))
A =
2
A =
2 5
A =
2 5 11
A =
2 5 11 23
A =
2 5 11 23 47
A =
2 5 11 23 47 95
A =
2 5 11 23 47 95 191
A =
2 5 11 23 47 95 191 383
A =
2 5 11 23 47 95 191 383 767
A =
2 5 11 23 47 95 191 383 767 1535
A =
2 5 11 23 47 95 191 383 767 1535 3071
y =
2 5 11 23 47 95 191 383 767 1535 3071
|
4 | Pass |
A = 3;
iterations = 10;
y_correct = [3 7 15 31 63 127 255 511 1023 2047 4095];
assert(isequal(your_fcn_name(A,iterations),y_correct))
A =
3
A =
3 7
A =
3 7 15
A =
3 7 15 31
A =
3 7 15 31 63
A =
3 7 15 31 63 127
A =
3 7 15 31 63 127 255
A =
3 7 15 31 63 127 255 511
A =
3 7 15 31 63 127 255 511 1023
A =
3 7 15 31 63 127 255 511 1023 2047
A =
3 7 15 31 63 127 255 511 1023 2047 4095
y =
3 7 15 31 63 127 255 511 1023 2047 4095
|
5 | Pass |
A = 5;
iterations = 10;
y_correct = [5 11 23 47 95 191 383 767 1535 3071 6143];
assert(isequal(your_fcn_name(A,iterations),y_correct))
A =
5
A =
5 11
A =
5 11 23
A =
5 11 23 47
A =
5 11 23 47 95
A =
5 11 23 47 95 191
A =
5 11 23 47 95 191 383
A =
5 11 23 47 95 191 383 767
A =
5 11 23 47 95 191 383 767 1535
A =
5 11 23 47 95 191 383 767 1535 3071
A =
5 11 23 47 95 191 383 767 1535 3071 6143
y =
5 11 23 47 95 191 383 767 1535 3071 6143
|
6 | Pass |
A = 7;
iterations = 8;
y_correct = [7 15 31 63 127 255 511 1023 2047];
assert(isequal(your_fcn_name(A,iterations),y_correct))
A =
7
A =
7 15
A =
7 15 31
A =
7 15 31 63
A =
7 15 31 63 127
A =
7 15 31 63 127 255
A =
7 15 31 63 127 255 511
A =
7 15 31 63 127 255 511 1023
A =
7 15 31 63 127 255 511 1023 2047
y =
7 15 31 63 127 255 511 1023 2047
|
3074 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
359 Solvers
424 Solvers
Matlab Basics - Create a row vector
277 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!