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

1 次查看(过去 30 天)
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 个评论
Jan
Jan 2017-10-12
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.

请先登录,再进行评论。

采纳的回答

Mischa Kim
Mischa Kim 2017-10-12
Tyson, use
x = [a; b; c]

更多回答(1 个)

KL
KL 2017-10-12
x = vertcat(a,b,c)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by