Problem 46721. Intercambiar columnas
x es una matriz cuadrada nxn. Necesitamos intercambiar los valores de la primera columna por los de la última, las demás se quedan igual.
Por ejemplo, si
x=[ 1 2 3 4;
5 6 7 8]
queremos conseguir
y=[ 4 2 3 1;
8 6 7 5]
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers24
Suggested Problems
-
Return the largest number that is adjacent to a zero
5489 Solvers
-
5931 Solvers
-
Find the sum of the elements in the "second" diagonal
1180 Solvers
-
320 Solvers
-
Matlab Basics - Logical Tests I
265 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!