How to extract amplitude data from wav. file?
4 views (last 30 days)
Show older comments
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!
0 Comments
Accepted Answer
KSSV
on 20 Aug 2017
Edited: KSSV
on 20 Aug 2017
Doc audioread..
[y,fs] = audioread(filename);
dt = 1/fs;
t = 0:dt:(length(y)*dt)-dt;
plot(t,y);
xlabel('Seconds');
ylabel ('Amplitude');
3 Comments
KSSV
on 20 Aug 2017
Note that the variable is Fs not fs....this is a typo error...type Fs instead of fs..
More Answers (0)
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!