Merge two vectors into matrix
167 ビュー (過去 30 日間)
古いコメントを表示
I have a time vector of 1x1024 double and an amplitude vector of 1024x1 double. How do I combine these vectors into a single matrix?
0 件のコメント
回答 (3 件)
Idan Cohen
2020 年 4 月 22 日
Hi,
I have a similar question. I have three vectors - X, Y and Z.
How can I merge these vectors into on matris so I can plot 3-D surf graph?
Thanks.
0 件のコメント
Von Duesenberg
2017 年 1 月 21 日
Something like this?
vector1 = rand(1024,1);
vector2 = rand(1, 1024);
newVector = [vector1 vector2'];
3 件のコメント
Mohammed Ayoub
2018 年 2 月 7 日
Use "horzcat" command after transposing one of the vector. The result will be horizontally concatenates arrays. Thanks
参考
カテゴリ
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!