Filter löschen
Filter löschen

How to assign timetable as cell type?

5 Ansichten (letzte 30 Tage)
Sagar Dutta
Sagar Dutta am 19 Feb. 2020
Kommentiert: Bhaskar R am 20 Feb. 2020
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.

Akzeptierte Antwort

Bhaskar R
Bhaskar R am 19 Feb. 2020
Suppose TT is your timetable variable
cell_array = table2cell(timetable2table(TT)); %timetable to cell
  4 Kommentare
Sagar Dutta
Sagar Dutta am 20 Feb. 2020
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 am 20 Feb. 2020
It's my pleasure !

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by