How to plot WAV file
28 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I'd like to plot .wav file in time and frequency domain.
0 件のコメント
採用された回答
Wayne King
2011 年 11 月 23 日
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)));
10 件のコメント
Anzzza
2022 年 2 月 9 日
when you have stereo audio, you got two channels. if you can, it's easier to work with one
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Pulsed Waveforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!