At a minimum, you should make this problem variable. For example, find the element at the ith row and jth column and define i and j in the test cases, which are passed along with the function.
Project Euler: Problem 6, Natural numbers, squares and sums.
1018 Solvers
Back to basics 8 - Matrix Diagonals
782 Solvers
701 Solvers
Calculate square and cube of number
248 Solvers
94 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!