if is possible to cancel a process if matlab take too much time to perfom the process?

2 vues (au cours des 30 derniers jours)
I have a for loop to analyse data,
for i=:length(data)
task(data(i));
end
but for example, if data has a length of 10,000 sometimes it got stuck at i=100 for more than one day. I cannot modify the function "task" therefore, I would like to know if there is a tool that stops the process of task at moment i=100 after a certain amount of time (let's say 90 min) so it can continues at i=101
Thanks
Cheers!

Réponse acceptée

Plus de réponses (1)

Swarooph
Swarooph le 19 Mai 2017
Modifié(e) : Swarooph le 19 Mai 2017

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by