Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
dVar = [1:5 4:-1:1];
ref = diag(dVar);
user = MatrixFunc();
assert(isequal(user,ref))
|
1836 Solvers
895 Solvers
Sum the numbers on the main diagonal
453 Solvers
484 Solvers
213 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!