필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Question about infinite looping

조회 수: 1 (최근 30일)
Portgas Ace
Portgas Ace 2012년 9월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
Is there a way where the matlab automatically stops after some time if it cant solved an equation? for example if im finding a value, but there is no possible value. so matlab becomes busy finding it. is there a way to stop it automatically?

답변 (2개)

Wayne King
Wayne King 2012년 9월 22일
Yes, you can program that in. For example, you can program in that if a solution is not found after so many iterations that you should exit.
The best way to do it, of course, depends on the algorithm.

Image Analyst
Image Analyst 2012년 9월 22일
No, not unless some sort of stopping condition (like elapsed time) has been programmed in like Wayne said. I know other products (like National Instruments I believe or other machine vision software meant for the manufacturing line) can interrupt a running function if it doesn't finish in the predefined time, but MATLAB does not have that capability.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by