How can I save vector values that changes its size each iteration?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Miroslav Mitev
le 2 Mar 2018
Commenté : Miroslav Mitev
le 2 Mar 2018
I have the following type of code:
while i<10
i=i+1;
while ...
C=...
end
B(i,:)=C;
end
where C is 1-row vector and B is supposed to be 10-row matrix with each row equal to C from iterations 1:10. The problem is that C changes its size each iteration and I am not sure how to save all its values in form of a matrix.
2 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements 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!