How do I table a variable with multiple values?
Show older comments
I have a variable with multiple values
x= -10:1:10
and I want to put it in a table, with each value being in one row of the table, but when I introduce the command the following happens:
table(x)

And when I try to use splitvars it creates more variables instead of rows

How can I do so the values of x are displayed on rows?
Accepted Answer
More Answers (0)
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!