how to copy cell array data into single cell of table
2 views (last 30 days)
Show older comments
rampavan medi
on 22 Sep 2021
Commented: rampavan medi
on 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]}
0 Comments
Accepted Answer
Murugan C
on 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);
More Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!