I am stuck in an error of timer function. Although I have tried to search, I find no answer.
function figure1_CreateFcn(hObject, eventdata, handles)
global t
t= timer( 'ExecutionMode', 'fixedRate', 'StartDelay',1, 'Period',1,'TasksToExecute',150);
t.TimerFcn = {@my_callback_fcn};
The error is that:
Error while evaluating TimerFcn for timer 'timer-1'
Too many input arguments.
My matlab version is R2014a. The start function is in a pushbutton2_Callback function.
I have tried to change period to 1.0, TasksToExecute to inf or TimerFcn in the timer( )...It does not help.
Is there anyone who can help me out ? Please! Thanks
