Rev | Line | |
---|
[50] | 1 | % directory where the WAV-files of the birds are stored: |
---|
| 2 | dpath = fullfile(mildatapath,'birds'); |
---|
| 3 | |
---|
| 4 | fname = 'PC13_20090531_050000_0.wav'; |
---|
| 5 | %fname = 'PC8_20090531_050000_99.wav'; |
---|
| 6 | [signal,fs] = wavread(fullfile(dpath,'wavs',fname)); |
---|
| 7 | |
---|
| 8 | [S,f,t] = spectrogram(signal,512,256,[],fs); |
---|
| 9 | |
---|
| 10 | figure(2); imagesc(t,f,abs(S)); |
---|
| 11 | axis xy; xlabel('time (s)'); ylabel('freq.'); |
---|
| 12 | |
---|
| 13 | figure(3); imagesc(t,f,imag(S)); |
---|
| 14 | axis xy; xlabel('time (s)'); ylabel('freq.'); |
---|
| 15 | |
---|
Note: See
TracBrowser
for help on using the repository browser.