How to assign timetable as cell type?

5 次查看(过去 30 天)
Hello,
Can anybody tell me how can I assign a timetable as cell type, and store it inside a table as shown in the image below.

采纳的回答

Bhaskar R
Bhaskar R 2020-2-19
Suppose TT is your timetable variable
cell_array = table2cell(timetable2table(TT)); %timetable to cell
  4 个评论
Sagar Dutta
Sagar Dutta 2020-2-20
I figured it out using the following code. Thanks for your help!
Table= table('Size',[30 2],'VariableTypes',["cell","string"]);
Table(1,1)={TT}; % TT is the timetable
Table(1,2)={'Label'};

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by