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
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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by