title: Matlab Timer function to start another function
body: <p>I want to use the timer function to execute another function, PowerOnFunc, 60 seconds after the timer has started counting.</p>
  
  <pre><code>%Timer Callback function
  function [] = ftimer(~,~)
      while TimerHandle.TasksExecuted == 60
          PowerOnFunc();
          break;
      end
  end
  
  %Handle and execution
  TimerHandle = timer('ExecutionMode','fixedrate','period',...
  1,'tag','clockTimer','timerfcn',@ftimer);
  start(TimerHandle);
  </code></pre>
  
  <p>However, this produces an error: 'Error while evaluating TimerFcn for timer 'timer-31'. Too many input arguments.' Any idea what could be causing the problem? Is there a simpler/more efficient way to do this? </p>