Using the Cancel button in uiprogressdlg to immediately stop execution

6 ビュー (過去 30 日間)
Uday Patel
Uday Patel 2021 年 3 月 3 日
回答済み: Walter Roberson 2021 年 3 月 3 日
I'm trying to get the cancel button in uiprogressdlg to stop execution immediately. I have a loop within which I check for CancelRequested == 1, but I'm only iterating that loop a few times. Each iteration has several steps with some pretty slow function calls (lots of data pulling and processing). Is there a way to get the cancel button to interrupt the execution of whatever is going on (kind of like a programmatic ctrl-c)? I check for CancelRequested == 1 after each step, but even then, I have to wait for the completion of a step which may take several minutes.

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 3 月 3 日

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by