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

2705 Solutions

1265 Solvers

Last Solution submitted on Apr 02, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers1265

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!