How to join two matrix arrays together

5 visualizaciones (últimos 30 días)
Moe
Moe el 29 de Jun. de 2015
Comentada: Adhityan R el 1 de Mayo de 2020
I have two matrices A(i) and B(i) with similar (i) arrays. This i will be vary in each run. For example for i = 3, A and B are:
A = [774 631 584];
B = [19 128 220];
I want matrix C to be:
C = [774,19;631,128;584,220]; % first array in matrix A comes with first array in matrix B

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 29 de Jun. de 2015
Editada: Azzi Abdelmalek el 29 de Jun. de 2015
  3 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 29 de Jun. de 2015
[A' B']
Adhityan R
Adhityan R el 1 de Mayo de 2020
horzcat(A,B)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by