Effacer les filtres
Effacer les filtres

switch column of table

40 vues (au cours des 30 derniers jours)
Eliah Verbeemen
Eliah Verbeemen le 24 Mai 2018
Commenté : Walter Roberson le 25 Mai 2018
If you have a table called A. And this table has three columns. How can you replace column three with column two?
  6 commentaires
Eliah Verbeemen
Eliah Verbeemen le 25 Mai 2018
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 le 25 Mai 2018
Please do not close questions that have an Answer.

Connectez-vous pour commenter.

Réponse acceptée

Akira Agata
Akira Agata le 25 Mai 2018
Modifié(e) : Akira Agata le 25 Mai 2018
If you have the latest version (R2018a), you can simply do it by movevars function, like:
yourTable = movevars(yourTable,2,'After',3);
  1 commentaire
Eliah Verbeemen
Eliah Verbeemen le 25 Mai 2018
I have an old version 2016a

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by