Having more than one sample question in your test suite would be helpful, Minhaj, if only to prevent "answers" like this one.
1912 Solvers
Sum the numbers on the main diagonal
457 Solvers
379 Solvers
171 Solvers
Matrix of almost all zeros, except for main diagonal
154 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!