Preallocating the size of a matrix which concatenates horizontally matrices in a for loop
Afficher commentaires plus anciens
How can I preallocate matrix t:
t=[];
for i=1:3;
a=randi(10,3,2);
t=[a t];
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!