how to copy cell array data into single cell of table

4 visualizaciones (últimos 30 días)
rampavan medi
rampavan medi el 22 de Sept. de 2021
Comentada: rampavan medi el 23 de Sept. de 2021
I have the following cell array.
C=
2×1 cell array
{[28.3469 284.0484 57.8201 64.7270]}
{[16.5200 120.0733 57.8201 46.3408]}
When I am using cell to table cell array is stored in different cells of table.
d=cell2table(c)
d =
2×1 table
C
____________________________________
28.347 284.05 57.82 64.727
16.52 120.07 57.82 46.341
But I want to save each cell array into each cell of table like shown in follwing table. like matlab labler app store the same way. How to code this?..Please help me thanks?.
2×1 table
C
_________________________________________
{[28.3469 284.0484 57.8201 64.7270]}
{[16.5200 120.0733 57.8201 46.3408]}

Respuesta aceptada

Murugan C
Murugan C el 23 de Sept. de 2021
try like this
a = {{[28.3469 284.0484 57.8201 64.7270]} {[16.5200 120.0733 57.8201 46.3408]}}';
d = cell2table(a);

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by