This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = 3;
b = 4;
y_correct = 5;
assert(isequal(your_fcn_name(a,b),y_correct))
|
Find the sum of the elements in the "second" diagonal
994 Solvers
289 Solvers
Sum of diagonal of a square matrix
1327 Solvers
309 Solvers
520 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!