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

采纳的回答

Image Analyst
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
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 CenterFile 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!

Translated by