how can make a matrix from many vectors?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how can make a matrix from many vectors?
3 commentaires
Réponses (3)
vaishali
le 18 Oct 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
le 18 Oct 2013
out=[A1;A2;A3;...]
1 commentaire
Azzi Abdelmalek
le 18 Oct 2013
Modifié(e) : Azzi Abdelmalek
le 18 Oct 2013
out=zeros(1000,2) % Pre-allocate
for k=1:1000
out(k,:)=... % your calculations
end
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!