Loop For & save result
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I want to run an algorithm 50 times using the for loop. I want to save the results after each iteration ie
-for i = 1 save result
-for i = 2 save result
:
:
-for i = 50 save result
For
Algorithme
end
do you have an idea
0 件のコメント
採用された回答
Ahmed raafat
2016 年 12 月 30 日
for i=1:50
result(i)= %if equation
result{i}= % if strings
end
2 件のコメント
Image Analyst
2016 年 12 月 30 日
You accepted this so it's all working right? Or not? I can't tell.
Please attach your m-file with the paper clip icon if you still need help.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!