Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Question about infinite looping

1 visualización (últimos 30 días)
Portgas Ace
Portgas Ace el 22 de Sept. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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?

Respuestas (2)

Wayne King
Wayne King el 22 de Sept. de 2012
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 el 22 de Sept. de 2012
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.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by