how to save iterations?
Mostra commenti meno recenti
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
Risposte (1)
Torsten
il 20 Ott 2015
0 voti
Instead of cm1, use cm1(i).
Best wishes
Torsten.
2 Commenti
Andrea Finocchiaro
il 20 Ott 2015
Torsten
il 21 Ott 2015
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.
Categorie
Scopri di più su Numerical Integration and Differentiation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!