MATLAB: How to plot WAV file frequency domainplottime domainwav Hello, I'd like to plot .wav file in time and frequency domain. Best Answer If this is the output of wavread, then see if you have two channels in y[y,fs] = wavread(filename);If y is two-channels, Nx2, then just plot one: y = y(:,1); dt = 1/fs; t = 0:dt:(length(y)*dt)-dt; plot(t,y); xlabel('Seconds'); ylabel('Amplitude'); figure plot(psd(spectrum.periodogram,y,'Fs',fs,'NFFT',length(y))); Related SolutionsMATLAB: (a) Please load the audio file ‘PhoneSound.wav’ and plot the audio signal X .(b) Please divide X into 10 segments having equal length (0.5 sec), and plot the power spectral density for each segment t = (0:length(y)-1)/Fs; plot(t,y)At 8000 samples per second, and frequencies over 1000 Hz, you should not expect to be able to resolve much by eye.spectrogram(y,kaiser(256,5),220,512,Fs);view(-45,65)colormap bone MATLAB: How to check length of a .wav file through GUI [y,fs] = wavread(filename);TotalTime = length(y)./fs; % time in seconds Related QuestionReading a song in matlabTime-shift after fft & filter??? Error: The expression to the left of the equals sign is not a valid target for an assignment.
Best Answer