how can make a matrix from many vectors?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
how can make a matrix from many vectors?
3 comentarios
Respuestas (3)
vaishali
el 18 de Oct. de 2013
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
el 18 de Oct. de 2013
out=[A1;A2;A3;...]
1 comentario
Azzi Abdelmalek
el 18 de Oct. de 2013
Editada: Azzi Abdelmalek
el 18 de Oct. de 2013
out=zeros(1000,2) % Pre-allocate
for k=1:1000
out(k,:)=... % your calculations
end
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!