putting columns together as a table
Afficher commentaires plus anciens
Hi guys, I have got several variables: a, b, c, d, e. They are all cell arrays and consist of one column and several million rows. I want to put them together as one table. How can I do that? I want it in the following order: abcde.
Thanks
Réponse acceptée
Plus de réponses (1)
Star Strider
le 3 Nov 2014
3 votes
4 commentaires
AA
le 3 Nov 2014
Star Strider
le 3 Nov 2014
Not really a problem.
Example:
a = {rand(5,1)};
b = {rand(7,1)};
z = {a b};
T = cell2table(z);
Mohammad Abouali
le 3 Nov 2014
Modifié(e) : Mohammad Abouali
le 3 Nov 2014
@StarRider: That doesn't actually work Here is the output
a = {rand(5,1)};
b = {rand(7,1)};
z = {a b};
T = cell2table(z);
>> T
T =
z1 z2
____________ ____________
[5x1 double] [7x1 double]
z would be a cell array with elements being cell array
Star Strider
le 3 Nov 2014
It works. That much is certain.
What we don’t yet know is if it meets AA’s requirements.
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!