how to get max frequency and how to get frequency response for 0.5 seconds wav file by using following code?
2 views (last 30 days)
this is the code in which I need frequency response for 0.5 seconds and how to set xlim and max frequency ?
Nsamps = length(y);
t = (1/fs)*(1:Nsamps)
% do fourier transformer
%plot sound file in Time domain
plot (t, y)
title('file name in Time Domain')
%plot sound file in frequency domain
title('frequency response of song')