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 comentario

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

Iniciar sesión para comentar.

 Respuesta aceptada

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

Más respuestas (1)

fatema saba
fatema saba el 23 de Jun. de 2014

0 votos

Thank you. yes I'm beginner Luis. Thanks

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Jun. de 2014

Comentada:

el 29 de Ag. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by