How to join two matrix arrays together

4 Ansichten (letzte 30 Tage)
Moe
Moe am 29 Jun. 2015
Kommentiert: Adhityan R am 1 Mai 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

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 29 Jun. 2015
Bearbeitet: Azzi Abdelmalek am 29 Jun. 2015
  3 Kommentare
Adhityan R
Adhityan R am 1 Mai 2020
horzcat(A,B)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Types 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