[data, fs] = audioread('YourFile.wav'); data_fft = fft(data); plot(abs(data_fft(:,1)))
If you want better markings such as frequency on the fft plot, then see the examples in the fft documentation to see how to construct the frequency graph.
[data, fs] = audioread('YourFile.wav'); data_fft = fft(data); plot(abs(data_fft(:,1)))
If you want better markings such as frequency on the fft plot, then see the examples in the fft documentation to see how to construct the frequency graph.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!