How to combine two arrays?
693 次查看(过去 30 天)
显示 更早的评论
I have two arrays
x = 561x1 double
y = 561x1 double
How can i combine it into
z = 561x2 double
采纳的回答
更多回答(1 个)
Opeyemi Kehinde
2021-12-17
This will combine everything vertically
ba=rand(5,1);
bc=rand(5,1);
bd=cat(1,ba,bc)
and this will combine them horizontally
ba=rand(5,1);
bc=rand(5,1);
bd=cat(2,ba,bc)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!