필터 지우기
필터 지우기

convert two column matrices into one column matrix

조회 수: 49 (최근 30일)
fatema saba
fatema saba 2014년 6월 23일
댓글: Thallon Pitchure 2020년 8월 29일
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
Thallon Pitchure
Thallon Pitchure 2020년 8월 29일
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일
Thank you. yes I'm beginner Luis. Thanks

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by