how can make a matrix from many vectors?
古いコメントを表示
how can make a matrix from many vectors?
3 件のコメント
sixwwwwww
2013 年 10 月 18 日
Are all the vectors of same length?
Azzi Abdelmalek
2013 年 10 月 18 日
You should precise column vectors or row vectors?
fatemeh
2013 年 10 月 18 日
回答 (3 件)
vaishali
2013 年 10 月 18 日
1 投票
C = horzcat(A1, A2, ...) horizontally concatenates matrices A1, A2, and so on. All matrices in the argument list must have the same number of rows
Jos (10584)
2013 年 10 月 18 日
編集済み: Jos (10584)
2013 年 10 月 18 日
1 投票
Azzi Abdelmalek
2013 年 10 月 18 日
out=[A1;A2;A3;...]
1 件のコメント
Azzi Abdelmalek
2013 年 10 月 18 日
編集済み: Azzi Abdelmalek
2013 年 10 月 18 日
out=zeros(1000,2) % Pre-allocate
for k=1:1000
out(k,:)=... % your calculations
end
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!