フィルターのクリア

switch column of table

40 ビュー (過去 30 日間)
Eliah Verbeemen
Eliah Verbeemen 2018 年 5 月 24 日
コメント済み: Walter Roberson 2018 年 5 月 25 日
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);
  1 件のコメント
Eliah Verbeemen
Eliah Verbeemen 2018 年 5 月 25 日
I have an old version 2016a

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by