Stop execution of function

조회 수: 3 (최근 30일)
Miguel Ángel Alonso
Miguel Ángel Alonso 2013년 3월 12일
Hello,
I have made a library ".dll" with some functions on Matlab. I call one of this function from another application and I would like to be able to stop the execution of this function from the application.
Please I hope your help, thanks a lot.
Regards,
Miguel Alonso Adalid

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 12일
There is no mechanism for that, other than stopping the program itself.
  댓글 수: 1
Miguel Ángel Alonso
Miguel Ángel Alonso 2013년 3월 13일
I have a rude solution. I use one .txt file, there I write a word "STOP" if the main program click on "Cancel" button. In the other hand, I view periodicly the .txt file and compare if the file has the word "STOP". Then I exit the function if its true.
Now, I would like to make this method with a backgroundworker if it's possible in Matlab. Or something like a "try catch" instruction. Thanks,
Regards,
Miguel Alonso Adalid

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by