Re-arrange vectors from rows to columns
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have 3 vector in rows as follows:
A = 1 1 1 1 1 1 1 1 1 1
B= 2 2 2 2 2 2 2 2 2 2
C= 3 3 3 3 3 3 3 3 3 3
I need only one vector with A, B and C as columns as follows:
D=
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
Thank you!
0 commentaires
Réponse acceptée
Raj
le 5 Mar 2019
A = [1 1 1 1 1 1 1 1 1 1];
B= [2 2 2 2 2 2 2 2 2 2 ] ;
C= [3 3 3 3 3 3 3 3 3 3];
A=A';
B=B';
C=C';
D=[A B C]
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!