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

5 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by