title: What is a spectrogram and how do I set its parameters?
body: <p>I am trying to plot the spectrogram of my time domain signal given:</p>
  
  <pre><code>N=5000;
  phi = (rand(1,N)-0.5)*pi;
  a = tan((0.5.*phi));
  i = 2.*a./(1-a.^2);
  plot(i);
  spectrogram(i,100,1,100,1e3);
  </code></pre>
  
  <p>The problem is I don't understand the parameters and what values should be given. These values that I am using, I referred to MATLAB's online documentation of <code>spectrogram</code>.  I am new to MATLAB, and I am just not getting the idea.  Any help will be greatly appreciated!</p>