how can make a matrix from many vectors?

2 次查看(过去 30 天)
how can make a matrix from many vectors?
  3 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2013-10-18
You should precise column vectors or row vectors?
fatemeh
fatemeh 2013-10-18
yes row vectors with same size 1*2,actually i have a for loop and it each time produce a vector with size 1*2 ,i want save this vector each time to a matrix

请先登录,再进行评论。

回答(3 个)

vaishali
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

Jos (10584)
Jos (10584) 2013-10-18
编辑:Jos (10584) 2013-10-18
... and if the vectors are not of the same lengths, you can use PADCAT

Azzi Abdelmalek
Azzi Abdelmalek 2013-10-18
out=[A1;A2;A3;...]

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by