필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by