Just fixed the code from another player, which had an interesting solution.
solution which does not use any nested function ;)
184 Solvers
497 Solvers
Rotate input square matrix 90 degrees CCW without rot90
385 Solvers
Permute diagonal and antidiagonal
225 Solvers
5364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!