Reset the order of table columns
조회 수: 4 (최근 30일)
이전 댓글 표시
Is it possible to change the order of columns in matlab table? Lets assume 5th column is parameter A. Can I bring it to the first column?
댓글 수: 0
답변 (2개)
the cyclist
2019년 11월 15일
% Make the table
x = rand(2,1);
y = rand(2,1);
tbl = table(x,y)
% Rearrange the column order
tbl = tbl(:,[2 1]);
댓글 수: 0
Steven Lord
2019년 11월 15일
If you're using release R2018a or later you could use the movevars function.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!