MATLAB Answers

How to rename a cell into Table

조회 수: 1(최근 30일)
Yuan Jun Lim
Yuan Jun Lim 18 Nov 2019
Answered: KSSV 18 Nov 2019
Hi, I have a cell named G_Status. It is a 6x2 cell.
How do i rename the first Column as G_Status_1 and the second Column as G_Status_2 ?

  댓글 수: 0

로그인 to comment.

답변 수 (1)

KSSV
KSSV 18 Nov 2019
Multiple ways. One way would be, convert the cell tinto table T using cell2table and rename the columns you want by
T.Properties.VariableNames = {"your names here"} ;

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by