title: generate simple sine wave in matlab
body: <p>How do I generate a simple sine wave in matlab?</p>
  
  <p>I would like to generate a wave which represents a temperature signal with an amplitude of 15 degrees during a 24 hour period, how can I do this? </p>
  
  <pre><code>t = 1:24
  x = 15.*sin(pi*t)
  plot(t,x)
  </code></pre>
  
  <p>where 15 is the amplitude. This does not generate a sine wave as I expected. I was expecting to see one wave which extends over a 24 hour period with an amplitude of 15, say with the lowest value of 5 and a maximum of 20 (how do I include these in the equation?).</p>