As part of a research project, I would like to analyze a sound file by generating it's spectrogram.
I have been able to successfully generate the spectrogram of the wave file in matlab with frequency on the y-axis and the time on the x-axis. I would however, like to generate the spectrogram with the frequency on the x-axis and the time on the y-axis. How can this be done?
I have searched through stack and have not found any accepted answers.
My code which generates the spectrogram with the frequency on the y-axis and the time on the x-axis (Matlab code):
[song, fs] = wavread('filename.wav');
windowSize = 256;
windowOverlap = ;
freqRange = 0:300;
spectrogram(song, windowSize, windowOverlap, freqRange, fs, 'yaxis');
Sorry, I don’t have whichever