How to rename a cell into Table

2 次查看(过去 30 天)
Yuan Jun Lim
Yuan Jun Lim 2019-11-18
回答: KSSV 2019-11-18
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 ?

回答(1 个)

KSSV
KSSV 2019-11-18
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"} ;

类别

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