Effacer les filtres
Effacer les filtres

convert two column matrices into one column matrix

49 vues (au cours des 30 derniers jours)
fatema saba
fatema saba le 23 Juin 2014
Commenté : Thallon Pitchure le 29 Août 2020
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 commentaire
Thallon Pitchure
Thallon Pitchure le 29 Août 2020
Hello! Would anyone be able to answer this except have two column vectors in a single matrix?

Connectez-vous pour commenter.

Réponse acceptée

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

Plus de réponses (1)

fatema saba
fatema saba le 23 Juin 2014
Thank you. yes I'm beginner Luis. Thanks

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by