How to stop a program if average change in function value in last 10 iterations is less than 0.001
1 回表示 (過去 30 日間)
古いコメントを表示
How can I program to stop execution of my code when average change in value of function let us say 'f' is less than 0.001 in last 10 iterations?
1 件のコメント
Jan
2017 年 5 月 1 日
Please provide any details, preferrably the code. The less the readers have to giess, the more likely is a matching answer.
What does " average change in value of function less than 0.001" exactly mean? Do you mean absolute or relative changes?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!