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.
406 Solvers
Getting the row and column location from a matrix
244 Solvers
466 Solvers
493 Solvers
674 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!