Can we add a variable inside the pause command?

조회 수: 1 (최근 30일)
Ali
Ali 2015년 1월 14일
답변: David Sanchez 2015년 1월 14일
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