I have several columns of data of different length, how can I combine them all into one continuous column?

1 view (last 30 days)
i have some data for example: a=[1;2;3;4;5;6] b=[1;2;3;4] c=[1;2;3;4;5;6;7;8;9;0] how can i make them one continuous column x=[1;2;3;4;5;6;1;2;3;4;1;2;3;4;5;6;7;8;9;0] thanks
  1 Comment
Jan
Jan on 12 Oct 2017
This is a very basic Matlab question. Please read the Getting Started chapters of the documentation. Matlab's "Onramp" is useful also for the start.

Sign in to comment.

Accepted Answer

Mischa Kim
Mischa Kim on 12 Oct 2017
Tyson, use
x = [a; b; c]

More Answers (1)

KL
KL on 12 Oct 2017
x = vertcat(a,b,c)

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!