How can I put a table Column (all the values from variable X) as a single element in another table
Show older comments
Hi, I would like to know can I put all the elements in a table column (a variable like dice throws) as a single tagged observation like this:
table 1
dice
-----------
1
12
5
1
2
Final result
values
---------
[1 12 ... ]
Answers (1)
Peter Perkins
on 25 Apr 2017
0 votes
If that is literally what you want to do, I recommend that you don't use a table at all. There's not a lot of point in having a table with one row and one variables. If that's really just a subset of what you're really doing, look at unstack.
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!