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

7 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

KSSV
KSSV el 22 de Mayo de 2017
A = rand(1,3) ;
B = rand(1,3) ;
C = [A' B'] ;

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by