How can I save vector values that changes its size each iteration?
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!