I have two files where first button should run in first click and after delay the second file should run . Any comments or command to delay a second file to run.

 採用された回答

Jos (10584)
Jos (10584) 2017 年 11 月 3 日
編集済み: Jos (10584) 2017 年 11 月 3 日

0 投票

You can create a timer object to delay the execution of a function. Here is an example:
SecondFunction = @() disp([' ... ' num2str(toc) ' seconds have elapsed ...']) ;
TimerHandle = timer('StartDelay',2,'TimerFcn','SecondFunction()') ;
tic ;
start(TimerHandle)
disp('Hello, I am going to be busy for about four seconds ...')
pause(4) % ... busy ...
disp(['Now it is ' num2str(toc) ' seconds later, so ... Goodbye!'])

その他の回答 (1 件)

chirag hb
chirag hb 2017 年 11 月 3 日

0 投票

Thank u Jos but I am little confused please explain realted to set_param('chirag','simulation command's,'start'); and next with same command I should run second file with delay so please help

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2017 年 11 月 3 日

回答済み:

2017 年 11 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by