Problem is incorrectly specified, according to the cases. 'Centering' seems to mean leave at most two spaces to either side, but otherwise center in the usual sense?
I did not know this function... nice
Swap the first and last columns
12410 Solvers
1882 Solvers
Back to basics 8 - Matrix Diagonals
781 Solvers
Magic is simple (for beginners)
2749 Solvers
241 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!