title: Specgram Amplitude Filtering - MATLAB R2008a
body: <p>So I have written a quick script in Matlab do some visualization for me-</p>
  
  <pre><code>function spectro(filename,maxFreq)
  
  wavchunksizefix(filename);
  
  [y,fs] = wavread(filename);
  
  subplot(2,1,1);
  plot(y);
  ylim([0 1]);
  title('Signal Amplitude');
  
  subplot(2,1,2);
  specgram(y,1024,fs);
  ylim([0 maxFreq]);
  cb = colorbar;
  set(get(cb,'title'),'string','dB');
  title('Original Signal Spectrogram');
  </code></pre>
  
  <p>What I was wondering is this- how do modify the specgram() output to only show a specific dB range? Right now it shows a whole bunch of unnecessary noise in the 0 to 40 dB range and I only want to see 0 to -50 dB (unfortunately, I can't post an example picture because I'm new).</p>