Azzera filtri
Azzera filtri

how to copy cell array data into single cell of table

2 visualizzazioni (ultimi 30 giorni)
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]}

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by