how can make a matrix from many vectors?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how can make a matrix from many vectors?
3 Commenti
Risposte (3)
vaishali
il 18 Ott 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
il 18 Ott 2013
out=[A1;A2;A3;...]
1 Commento
Azzi Abdelmalek
il 18 Ott 2013
Modificato: Azzi Abdelmalek
il 18 Ott 2013
out=zeros(1000,2) % Pre-allocate
for k=1:1000
out(k,:)=... % your calculations
end
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!