This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 3;
y_correct = [6 5 4];
assert(isequal(other_diag(n),y_correct))
|
2 | Pass |
%%
n = 4
y_correct = [13 10 7 4];
assert(isequal(other_diag(n),y_correct))
n =
4
|
3 | Pass |
%%
n = 7;
y_correct = [28 27 26 25 24 23 22];
assert(isequal(other_diag(n),y_correct))
|
Find the sum of the elements in the "second" diagonal
880 Solvers
304 Solvers
Number of odd and even elements within matrix
100 Solvers
Is this triangle right-angled?
1374 Solvers
Sum of the Multiplication of Vectors
153 Solvers