Combine two tables together
1 view (last 30 days)
Show older comments
Marty Dutch
on 2 May 2014
Commented: Image Analyst
on 2 May 2014
Dear experts,
I want to combine two seperate tables together so that they form one table.
I have these two tables:
1 1
2 0
3 1
4 1
5 0
6 1
I want to combine then into 1 table like this:
1 1
2 0
3 1
4 1
5 0
6 1
Can somebody help me?
Marty
1 Comment
Image Analyst
on 2 May 2014
We call those kinds of numbers-only items "arrays" or "matrices". "tables" are a particular data type that is sort of in between arrays and cell arrays. Tables are good if you need to mix data types, like columns of numbers along with columns of strings, into a single variable. Look up tables in the help if you have R2013b or later.
Accepted Answer
Azzi Abdelmalek
on 2 May 2014
Edited: Azzi Abdelmalek
on 2 May 2014
a=[1 1;2 0;3 1];
b=[4 1;5 0;6 1];
c=[a;b]
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!