-
1 Comment
Peng Liu
on 31 Aug 2016
This solution together with the solution of James' (or mine) exhibits a nice duality between the "top-down" and "bottom-up" approaches.
Suggested Problems
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
485 Solvers
-
Reverse the elements of an array
1050 Solvers
-
282 Solvers
-
Hexagonal numbers on a spiral matrix
142 Solvers
-
342 Solvers
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!