combine matrix in matlab

6 views (last 30 days)
Chun Yin Lui
Chun Yin Lui on 23 Feb 2021
Commented: Chun Yin Lui on 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]

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 23 Feb 2021
reshape([A;B],1,[])

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!