how to combine two data in one column?
Show older comments
example
A=5x1
1
2
3
4
5
B=5x1
a
b
c
d
e
i want to be like this
C=
1
2
3
4
5
a
b
c
d
e
Answers (1)
Guillaume
on 15 Dec 2016
C = [A; B]
Use ; instead of , to concatenate vertically. Or use the explicit function:
C = vertcat(A, B);
Categories
Find more on Creating and Concatenating Matrices 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!