I have an audio signal (.wav) and would like to view its spectrum in matlab. Can anybody help me in this manner?
John Michell answered .
2025-11-20
Read it in with wavread()
[signal,fs] = wavread('file.wav');
If signal is Nx2 (two columns), extract one of them
signal = signal(:,1);
If you have the Signal Processing Toolbox, enter
plot(psd(spectrum.periodogram,signal,'Fs',fs,'NFFT',length(signal)));