Nice problem! At least if you don't use MATLAB's existing function for this.
Back to basics 8 - Matrix Diagonals
792 Solvers
255 Solvers
314 Solvers
convert matrix to single column
317 Solvers
190 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!