convert column vectors to 2D array
3 次查看(过去 30 天)
显示 更早的评论
Hello,
If you had two column vectors (2 columns of data) in the workspace, how could you convert this to a 2D array?
Thanks for your help
0 个评论
回答(2 个)
Azzi Abdelmalek
2012-10-2
编辑:Azzi Abdelmalek
2012-10-2
a=[1;2;3]
b=[11;12;13]
v=[a'; b'] % vertical concatenation
w=[a b ] % horizontal concatenation
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!