title: Creating a swept wave type of signal without using chirp in matlab / octave?
body: <p>How can I create a swept wave signal in octave / matlab without using the chirp function.  I would like to do this because I'm trying to create a swept signal from a specific audio signal generated by octave / matlab not just a simple sin wave.  </p>
  
  <p>I tried piecing some code together found here <a href="https://stackoverflow.com/questions/12679810/matlab-produce-a-swept-non-cosine-wave">MATLAB - produce a swept non-cosine wave?</a>
  but ran into problems with the signal not being a second in length when fs=8000 </p>
  
  <pre><code>%test sweep / chirp
  clc
  clear all
  freq=200
  fs=8000;
  t=linspace(0,2*pi(1:freq/fs),fs); %
  
  for nn=1:freq
      data(nn)=sin(nn*t(nn));
  end
  
  wavwrite([data'] ,fs,32,strcat('/tmp/del.wav')); %export file
  plot(data(1:200))
  </code></pre>
  
  <p>here's an image of the signal plot along with my question and problem:</p>
  
  <p>1) notice the plot is not going to 8000 samples due to the fact I
     would get an error if I did that.</p>
  
  <p>2) And its suppose to go from 1-200hz over 1 second.</p>
  
  <p><img src="https://i.stack.imgur.com/tqVFL.png" alt="enter image description here"></p>