combine matrix in matlab

3 Ansichten (letzte 30 Tage)
Chun Yin Lui
Chun Yin Lui am 23 Feb. 2021
Kommentiert: Chun Yin Lui am 23 Feb. 2021
I need to combine the two matrices a and b to yield c
A = [1,2,3] & B = [4,5,6]
C = [1,4,2,5,3,6]

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 23 Feb. 2021
reshape([A;B],1,[])
  1 Kommentar
Chun Yin Lui
Chun Yin Lui am 23 Feb. 2021
This works, thank you for help

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by