source: birds/domilbirds.m @ 50

Last change on this file since 50 was 50, checked in by dtax, 11 years ago

Bird classification.

File size: 433 bytes
RevLine 
[50]1% directory where the WAV-files of the birds are stored:
2dpath = fullfile(mildatapath,'birds');
3
4fname = '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
10figure(2); imagesc(t,f,abs(S));
11axis xy; xlabel('time (s)'); ylabel('freq.');
12
13figure(3); imagesc(t,f,imag(S));
14axis xy; xlabel('time (s)'); ylabel('freq.');
15
Note: See TracBrowser for help on using the repository browser.