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.

 Réponse acceptée

Bhaskar R
Bhaskar R le 19 Fév 2020
Suppose TT is your timetable variable
cell_array = table2cell(timetable2table(TT)); %timetable to cell

4 commentaires

Sagar Dutta
Sagar Dutta le 19 Fév 2020
Thank you for your answer! But how do I store the cells inside a table as shown in the attached screenshot.
Bhaskar R
Bhaskar R le 20 Fév 2020
How do you want your results, can you specify in small snippet?
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 le 20 Fév 2020
It's my pleasure !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by