WAV 2D Color Spectrogram
Displays a 2D color spectrogram based on 'input.wav'.
**Axis values are not representative of time or frequency.
%FFT window size
window = 267;
[Y,FS,NBITS]=wavread('input.wav');
zz = zeros(0,window);
Y = Y.*1000;
for m = window+1:window:length(Y)
y = Y(m-window:m);
yy = fft(y);
zz = [zz, yy];
end
colormap(jet(280));
image(abs(zz));
xlabel('Time')
ylabel('Frequency')