how can make a matrix from many vectors?
2 ビュー (過去 30 日間)
古いコメントを表示
how can make a matrix from many vectors?
3 件のコメント
回答 (3 件)
vaishali
2013 年 10 月 18 日
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
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
参考
カテゴリ
Help Center および 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!