Filter löschen
Filter löschen

how to copy cell array data into single cell of table

3 Ansichten (letzte 30 Tage)
rampavan medi
rampavan medi am 22 Sep. 2021
Kommentiert: rampavan medi am 23 Sep. 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]}

Akzeptierte Antwort

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

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