Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to merge first elements from 2 array into an new array?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to merge 2 arrays so that the output is as follows:
A=[1 2 3]
B=[4 5 6]
I want C to be:
C=[1 4 2 5 3 6]
That pick up each successive numbers from each side and place them side by side in a new array? Any way of doing this using simple lines ..if possible no use of inbuilt functions..
1 个评论
回答(2 个)
Azzi Abdelmalek
2015-6-30
C=reshape([A;B],1,[])
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!