Swap the first and last columns of a matrix.
So if A = [12 4 7; 5 1 4]; B = [7 4 12; 4 1 5];
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers132
Suggested Problems
-
Which values occur exactly three times?
5245 Solvers
-
Flip the main diagonal of a matrix
914 Solvers
-
Sum the 'edge' values of a matrix
404 Solvers
-
Sum of the Multiplication of Vectors
286 Solvers
-
find whether it is prime or not
158 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!