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

6 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by