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
Solution Comments
Show comments
Loading...
Problem Recent Solvers5
Suggested Problems
-
Swap the column given with another one!
5 Solvers
More from this Author15
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!