MATLAB Cody - MATLAB Central

Problem 1158. Sum the elements in either diagonal of a square matrix

Difficulty:Rate

Solution 306873

Submitted on 19 Aug 2013 by Peter Wittenberg
This solution is locked. To view this solution, you need to solve the problem first.

Suggested Problems

More from this Author2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page