MATLAB Answers

combine matrix in matlab

36 views (last 30 days)
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,[])
  1 Comment
Chun Yin Lui
Chun Yin Lui on 23 Feb 2021
This works, thank you for help

Sign in to comment.

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!