How to combine two row matrixes into one 'n X m' matrix

7 visualizzazioni (ultimi 30 giorni)
Hi,
I have two 1x3 row matrixes such as
A=[a1,a2,a3] and B=[b1,b2,b3]
And I want to combine those two A and B matrixes into another 3x2 matrix as,
C = [a1,b1; a2,b2; a3,b3]
How to do that?

Risposta accettata

KSSV
KSSV il 22 Mag 2017
A = rand(1,3) ;
B = rand(1,3) ;
C = [A' B'] ;

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by