To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
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) ...