Effacer les filtres
Effacer les filtres

Creating a timer without pause

2 vues (au cours des 30 derniers jours)
Hanif
Hanif le 26 Juin 2013
*How do I create a timer in one function and have a callback in another function*
ie:
function createtimer
t = timer... %Finish Timer statement
start(t)
end
function TimerCallback
% Do whatever
end
OR
*How do I create a timer, that will wait x amount of seconds before executing the next line of code (Similar to pause but not pause) *
ie:
function Starttimer
disp('hello')
t = timer ..
start(t)
disp('world')
end

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by