We have a random sized matrix A. You have to change the nth column with the kth column. The result must be a matrix B.
For example:
inputs:A = 1 2 3 4
5 6 7 8
9 3 5 6
n = 3
k = 4
output:B = 1 2 4 3
5 6 8 7
9 3 6 5
The number of rows and columns will be >1. If they are ΝΟΤ type that 'WE AGREED SOMETHING ELSE!'.
GOOD LUCK AND HAVE FUN!!!!!!!!!

Solution Stats

8 Solutions

5 Solvers

Last Solution submitted on Aug 30, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers5

Suggested Problems

More from this Author16

Community Treasure Hunt

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

Start Hunting!