switch column of table

40 次查看(过去 30 天)
If you have a table called A. And this table has three columns. How can you replace column three with column two?
  6 个评论
Eliah Verbeemen
Eliah Verbeemen 2018-5-25
Finnaly there is a working code. Probably re you right and was I working with a cell array. I have changed a lot of things untill it worked. Trail and error.
Walter Roberson
Walter Roberson 2018-5-25
Please do not close questions that have an Answer.

请先登录,再进行评论。

采纳的回答

Akira Agata
Akira Agata 2018-5-25
编辑:Akira Agata 2018-5-25
If you have the latest version (R2018a), you can simply do it by movevars function, like:
yourTable = movevars(yourTable,2,'After',3);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by