Combine 2 matrices into 1
1 view (last 30 days)
Show older comments
Lanceric Tse
on 14 Aug 2018
Commented: Yuvaraj Venkataswamy
on 14 Aug 2018
I have a matrix
a= 1 1 1
1 1 1
1 1 1
b= 2 2 2
2 2 2
2 2 2
How do I combine them into
1 2 1 2 1 2
1 2 1 2 1 2
1 2 1 2 1 2
0 Comments
Accepted Answer
Yuvaraj Venkataswamy
on 14 Aug 2018
Edited: Yuvaraj Venkataswamy
on 14 Aug 2018
You can use command which is given in the below link. https://in.mathworks.com/matlabcentral/answers/266969-combine-two-matrices-every-other-column
5 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!