Pause the execution of script

Hi everyone,
I have a script file which has a plot in it, then i have a gui which changes settings of that plot , so i used pause on & pause(40) commands after gui to stop execution of other part of script to allow user some time to select which doesn't sound good.
I want to pause the execution and have a pushbutton in gui which continues the execution

回答 (1 件)

Thomas
Thomas 2012 年 7 月 2 日

0 投票

maybe uiwait can help.
doc uiwait

4 件のコメント

Sean de Wolski
Sean de Wolski 2012 年 7 月 2 日
or
doc waitfor
Luffy
Luffy 2012 年 7 月 4 日
@Thomas I tried uiwait in script and in gui i gave a pushbutton's callback as uiresume why doesn't it start excuting,it stopped indefinetely
Is there any other way to do it
Jan
Jan 2012 年 7 月 4 日
編集済み: Jan 2012 年 7 月 4 日
@Monkey: Please post the corresponding code, because the textual description is too vague to allow a reliable analysis.
Luffy
Luffy 2012 年 7 月 4 日
@Simon: i didn't know hw to post it,related part is only 2lines and the entire code ws very big to post
So let me explain it simply,
I have to pause my code just after gui loads,so that i can press some button's in gui & then i want to press a push button upon which the code should continue executing from where it stopped.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeNumerical Integration and Differential Equations についてさらに検索

製品

質問済み:

2012 年 7 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by