How to combine two arrays?
556 ビュー (過去 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 で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!