how to run a .mfile in a loop and to save results of each itteration seperatly
1 回表示 (過去 30 日間)
古いコメントを表示
i have a .mfile....and o/p of it is set of arrays.....i need it to run 2 times and have to store it in two different set of arrays seperatly ....and this has to be done automatically...
thanks in advance,
0 件のコメント
採用された回答
David Sanchez
2013 年 7 月 23 日
You have to make some changes in your code. Create a cell array to hold your data.
my_data_cell = cell(size_of_data, N_iterations);
Add a flag (N_iterations) signalling each iteration and save your data to a different cell column on each iteration.
2 件のコメント
David Sanchez
2013 年 7 月 23 日
a flag is just another variable. In the example given, N_iterations could be your flag.
その他の回答 (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!