How to assign timetable as cell type?

5 ビュー (過去 30 日間)
Sagar Dutta
Sagar Dutta 2020 年 2 月 19 日
コメント済み: Bhaskar R 2020 年 2 月 20 日
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'};
Bhaskar R
Bhaskar R 2020 年 2 月 20 日
It's my pleasure !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by