Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 3;
y_correct = [6 5 4];
assert(isequal(other_diag(x),y_correct))
ans =
[]
|
2 | Pass |
x = 4
y_correct = [13 10 7 4];
assert(isequal(other_diag(x),y_correct))
x =
4
ans =
[]
|
3 | Pass |
x = 7;
y_correct = [28 27 26 25 24 23 22];
assert(isequal(other_diag(x),y_correct))
ans =
[]
|
Return the 3n+1 sequence for n
6167 Solvers
Find the alphabetic word product
2321 Solvers
253 Solvers
856 Solvers
Matrix of almost all zeros, except for main diagonal
152 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!