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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by