Can we add a variable inside the pause command?

1 次查看(过去 30 天)
Can we add a variable inside the pause command? for example pause(wait(i))?

采纳的回答

David Sanchez
David Sanchez 2015-1-14
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 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by