Clear Filters
Clear Filters

convert two column matrices into one column matrix

50 views (last 30 days)
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 Comment
Thallon Pitchure
Thallon Pitchure on 29 Aug 2020
Hello! Would anyone be able to answer this except have two column vectors in a single matrix?

Sign in to comment.

Accepted Answer

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

More Answers (1)

fatema saba
fatema saba on 23 Jun 2014
Thank you. yes I'm beginner Luis. Thanks

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!