A= [2 3 4]; B=[2 3 4]; Output C=[22 33 44]; Merge 2 matrix elements
1 次查看(过去 30 天)
显示 更早的评论
HI,
I want to merge a matrix A(1xN) with B(1xN)....The elements in both matrices are same.....the output C(1xN) should merge both matrices......
Thank you
更多回答(3 个)
Azzi Abdelmalek
2012-11-12
编辑:Azzi Abdelmalek
2012-11-12
A=[11 22 33];
c=num2str(A')
d=[c,c]
B=str2num(d)
B=B'
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!