frogStart - % % % % % % % % % % % % % % % % % % % %...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
% % dspfrogs.m % Douglas L. Jones % University of Illinois % January 9, 2009 % % dspfrogs.m: Loads and processes frog chorus data % to remove interference and recover calls of each species % % USER NOTES % % HISTORY % - Substantially modified from ece410demo.m % % DEVELOPER NOTES % % % SETUP % % set parameters fs = 20000; % sampling rate of frog chorus data dBmin = -20; % minimum dB level to plot notch_h_plot_len = 200; % number of samples of notch filter's impulse response to plot % % LOAD DATA % load chorus.dat; chorus = chorus'; % change to row vector clen = length(chorus); sample_times = [0:clen-1]/fs; % % PLOT DATA AND SPECTRUM % figure(1) % plot raw data plot(sample_times,chorus) xlabel('Time (sec)') ylabel('Amplitude') title('Frog Chorus Data') soundsc(chorus,fs) % listen to the data chorusfreq = fft(chorus); % compute DFT of data fftlen = length(chorusfreq); figure(2) freqs = [0:fftlen/2-1]*fs/fftlen; % plot spectrum of data plot(freqs,abs(chorusfreq(1:fftlen/2)),'k') xlabel('Frequency (Hz)') ylabel('Magnitude') title('Frequency spectrum of raw data')
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/22/2011 for the course ECE 410 taught by Professor Staff during the Spring '08 term at University of Illinois, Urbana Champaign.

Page1 / 3

frogStart - % % % % % % % % % % % % % % % % % % % %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online