How to save workspace in a for loop?
古いコメントを表示
Hello,
I want to save the workspace at each iteration (in a vector maybe). By doing this, I will be able to reach any workspace generated at any iteration.
Thank you.
3 件のコメント
Geoff Hayes
2014 年 11 月 17 日
Ibra - when you say that you want to save the workspace at each iteration do you mean that you want to save a particular variable or all variables at that iteration (like a snapshot)? Please provide more details concerning the variables. Depending upon how many there are, you may want to save all to a file or save all to a structure (which gets saved to an array/vector).
ibra
2014 年 11 月 18 日
Image Analyst
2014 年 11 月 18 日
Just have the variables be arrays. Assign the value to an array with the same index as the loop index (if it's sequential integers).
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!