MATLAB: How to extract amplitude data from wav. file

amplitudeanalysisaudioaudio analysisdataMATLABwavwav file

Hi, I have some wav. files of echolocation calls of bats that I need to analyze. I want to plot the amplitude as a function of time. Can someone point me in the right direction? An online tutorial would help a lot.
Thanks!

Best Answer

Doc audioread..
[y,fs] = audioread(filename);
dt = 1/fs;
t = 0:dt:(length(y)*dt)-dt;
plot(t,y);
xlabel('Seconds');
ylabel ('Amplitude');
Related Question