how can make a matrix from many vectors?
5 次查看(过去 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!