Flipping matrix up and down.
If a central row is exists, leave it, and flip remaining rows.
Example
Mat = magic(3)
Mat = [8 1 6;
3 5 7;
4 9 2] -> A = [4 9 2;
3 5 7;
8 1 6]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers356
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15783 Solvers
-
Back to basics 3 - Temp Directory
384 Solvers
-
Matrix indexing with two vectors of indices
775 Solvers
-
1262 Solvers
-
565 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!