Can we add a variable inside the pause command?

Can we add a variable inside the pause command? for example pause(wait(i))?

 採用された回答

David Sanchez
David Sanchez 2015 年 1 月 14 日

0 投票

If you read the documentation
doc pause
you will see that you can add a variable inside the pause command.
One example:
w = 1;
for k=1:2
pause(w) % pause one second before executing next sentence
disp(i)
end

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

質問済み:

Ali
2015 年 1 月 14 日

回答済み:

2015 年 1 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by