title: How to use Timer in Matlab
body: <p>I want use matlab to get IBM price from yahoo
  price can get by</p>
  
  <pre><code>quote = fetch(yahoo, 'IBM', 'Last');
  px = quote.Last;
  </code></pre>
  
  <p>Now I want to retrieve the data every minute from, for example, 9:00 am to 1:00 pm.
  I would like to use timer object to get my data.</p>
  
  <p>However, I cannot figure out how to use it.
  What I can get is </p>
  
  <pre><code>t = timer;
  t.ExecutionMode = 'fixedRate';
  t.Period = 60;
  </code></pre>
  
  <p>especially the <code>timerFcn</code>, I don't get how to use it.</p>
  
  <p>Hope someone can write me an example with this.
  Thanks</p>