I want to execute a function after 10 seconds,how will i wrrite that,,,have to write using timer?
No products are associated with this question.
A timer is the best solution:
TimerH = timer('TimerFcn', @yourFunction, 'StartDelay', 10, ... 'ExecutionMode', 'singleShot'); start(TimerH);
Consider, that the timer function needs two inputs:
function yourFunction(TimerH, EventData) ...