Borrar filtros
Borrar filtros

How to assign timetable as cell type?

3 visualizaciones (últimos 30 días)
Sagar Dutta
Sagar Dutta el 19 de Feb. de 2020
Comentada: Bhaskar R el 20 de Feb. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by