I have two xxx.wav input files recorded for 30 seconds in noise lab at different conditions with fs 44,100 need to plot normalized frequency Vs dB in one plot

조회 수: 13(최근 30일)
Nega Ejjigu
Nega Ejjigu 2021년 9월 4일
댓글: Nega Ejjigu 2021년 9월 5일
I have two .wav input files recorded for 30 seconds with fs 44,100 each . I want a matlab code for frequency analysis plot in one panel to compare two wav file inputs

채택된 답변

Walter Roberson
Walter Roberson 2021년 9월 4일
Read the files. Isolate a single channel on each. If they are different frequencies, resample to a common frequency. If one is shorter than the other, truncate the longer. Subtract the mean of each signal from the signal.
Now fft each signal. plot() the real() or imag() or abs() of the first result. Use "hold on" . plot() the real() or imag() or abs() of the second result. Label the plot.
  댓글 수: 9
Nega Ejjigu
Nega Ejjigu 2021년 9월 5일
Thanks!I reallized that typo error (o missed).
now I got the below error :
Error using secondcode (line 4)
Assertion failed.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by