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에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by