how to save iterations?
显示 更早的评论
Hi guys, I am running a cycle of this type:
for i=1:190 cm1=cov(rend(i:180+1-i,:)); end
The problem is that Matlab is showing me just the LAST result of the cycle(that is a matrix) but i want to see and to save save all the results. Thanks
回答(1 个)
Torsten
2015-10-20
0 个投票
Instead of cm1, use cm1(i).
Best wishes
Torsten.
2 个评论
Andrea Finocchiaro
2015-10-20
Torsten
2015-10-21
for i=1:190
cm1=cov(rend(i:180+1-i,:));
cm_mat(i,:,:) = cm1(:,:);
end
assuming that all covariance matrices are of the same size.
Best wishes
Torsten.
类别
在 帮助中心 和 File Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!