switch column of table
40 views (last 30 days)
Show older comments
Eliah Verbeemen
on 24 May 2018
Commented: Walter Roberson
on 25 May 2018
If you have a table called A. And this table has three columns. How can you replace column three with column two?
6 Comments
Accepted Answer
Akira Agata
on 25 May 2018
Edited: Akira Agata
on 25 May 2018
If you have the latest version (R2018a), you can simply do it by movevars function, like:
yourTable = movevars(yourTable,2,'After',3);
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!