how does one do a fourier analysis on a .wav file. Just figured out how to import a .wav file into matlab. when i download it , it just brings up a bunch of numbers. How do i go about doing a fourier analysis with this data. I have done the entire st
1 次查看(过去 30 天)
显示 更早的评论
Just figured out how to import a .wav file into matlab. when i download it , it just brings up a bunch of numbers. How do i go about doing a fourier analysis with this data. I have done the entire student tutorial for Matlab but could not figure it out.
Am an 11th grader and would need some help
0 个评论
采纳的回答
Image Analyst
2013-12-27
Well the sound file is just a bunch of numbers. Each number represents a voltage that gets sent to the speaker (simplified explanation). To take the audio frequency spectrum you can call the FFT:
theSpectrum = fft(theWavSignal);
plot(real(theSpectrum));
1 个评论
Walter Roberson
2013-12-27
One trick here is that the information in a .wav file is usually stereo, two channels, and that each channel is stored as one column of the data.
wavdata = wavread(...);
wavdata(:,1) is left channel
wavdata(:,2) is right channel
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!