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

1 view (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!