convert two column matrices into one column matrix

Hello I want to combine two column vector matrices into one column vector matrix like the example A=[1;4;6;7;8] B=[10;21;11;9] C must be like: C=[1;4;6;7;8;10;21;11;9]
I need a general answer because I have many and large columns. Thank you

댓글 수: 1

Hello! Would anyone be able to answer this except have two column vectors in a single matrix?

댓글을 달려면 로그인하십시오.

 채택된 답변

José-Luis
José-Luis 2014년 6월 23일
C = [A(:);B(:)]
This is a pretty basic question. I recommend you read the "Getting started" part of the documentation.

추가 답변 (1개)

fatema saba
fatema saba 2014년 6월 23일

0 개 추천

Thank you. yes I'm beginner Luis. Thanks

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2014년 6월 23일

댓글:

2020년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by