How to segment an wav file off to 2 second interval and FFT every 2 second.

3 ビュー (過去 30 日間)
Lim Sky
Lim Sky 2015 年 7 月 17 日
回答済み: Manolis Michailidis 2015 年 7 月 18 日
I have facing problem on how to segment an wav file off to 2 second interval and FFT every 2 second. My wav file is 65 second long and my sampling rate is 44100hz. My coding : [y,fs]=audioread('C:\Users\Sky\Desktop\Discrete Time signal processing\ASGN(1)\ESNoise.wav'); I was stuck
  2 件のコメント
Eric Pahlke
Eric Pahlke 2015 年 7 月 17 日
I'm not sure what part of the process you're having trouble with.
Is the issue in separating out the sub-arrays of length 88200, or in using fft()?
fft() is a little tricky... see my function attached. It takes a data vector and a time vector and computes an amplitude vector and a frequency vector. It handles the little details of using fft() such as padding to get to a power of 2 length and correctly computing the frequency vector.
Lim Sky
Lim Sky 2015 年 7 月 18 日
Eric Pahlke, ya, i was stuck on the issue in separating out the sub-arrays of length 88200, you have any solution ?

サインインしてコメントする。

回答 (1 件)

Manolis Michailidis
Manolis Michailidis 2015 年 7 月 18 日
There is the spectrogram take a look here http://www.mathworks.com/help/signal/ref/spectrogram.html which performs STFT. Also if your issue is framing there is the buffer function http://www.mathworks.com/help/signal/ref/buffer.html.

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by