Problem 1321. Given a matrix, swap the 2nd & 3rd columns

If
a = [1 2 3 4;
1 2 3 4;
1 2 3 4;
1 2 3 4];
then the result is
ans = [1 3 2 4
1 3 2 4
1 3 2 4
1 3 2 4];
by swapping columns 2 and 3.

Solution Stats

52.22% Correct | 47.78% Incorrect
Last Solution submitted on Jul 19, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers1038

Suggested Problems

More from this Author13

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!