Effacer les filtres
Effacer les filtres

how to copy cell array data into single cell of table

2 vues (au cours des 30 derniers jours)
rampavan medi
rampavan medi le 22 Sep 2021
Commenté : rampavan medi le 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]}

Réponse acceptée

Murugan C
Murugan C le 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);

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by