Borrar filtros
Borrar filtros

switch column of table

40 visualizaciones (últimos 30 días)
Eliah Verbeemen
Eliah Verbeemen el 24 de Mayo de 2018
Comentada: Walter Roberson el 25 de Mayo de 2018
If you have a table called A. And this table has three columns. How can you replace column three with column two?
  6 comentarios
Eliah Verbeemen
Eliah Verbeemen el 25 de Mayo de 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 el 25 de Mayo de 2018
Please do not close questions that have an Answer.

Iniciar sesión para comentar.

Respuesta aceptada

Akira Agata
Akira Agata el 25 de Mayo de 2018
Editada: Akira Agata el 25 de Mayo de 2018
If you have the latest version (R2018a), you can simply do it by movevars function, like:
yourTable = movevars(yourTable,2,'After',3);
  1 comentario
Eliah Verbeemen
Eliah Verbeemen el 25 de Mayo de 2018
I have an old version 2016a

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by