I got tired of solving these problems. So, I just wrote a solution that works for everything.
5869 Solvers
Getting the row and column location from a matrix
244 Solvers
Find the index of n in magic(n)
164 Solvers
943 Solvers
492 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!