Reading Audio Files and Plotting Time Domain and Frequency Domain Signals in MATLAB!

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 18

  • @TheUrbanScholar
    @TheUrbanScholar  4 года назад +7

    Small correction: When you plot the fft over all nfft points, it isn't the spectrum from 0-48 kHz. It's the spectrum from -24 kHz to +24 kHz. The reason we plot only until nfft/2 isn't the range of audible frequencies but the Nyquist theorem which says that any frequency over fs/2 will lead to aliasing in the spectrum.
    For a real valued time domain signal, the DFT-coefficients for negative frequencies are the conjugates of the ones for positive frequencies which is why it looks symmetrical in the abs-spectrum.

  • @thanhtungnguyen5178
    @thanhtungnguyen5178 Год назад

    Thank you very much for your video. What is the unit of amplitude in the time domain of noise? Is it Pa?

  • @TsunogaKidz_YMD
    @TsunogaKidz_YMD Год назад

    thankyou dude, good explanation and to the point

  • @paulensor9984
    @paulensor9984 2 года назад

    A nice detailed video, thanks

  • @ptrk2032
    @ptrk2032 2 года назад +2

    In what units is the amplitude?

  • @helinaras8664
    @helinaras8664 Год назад

    u saved my lifeeeeeeeee

  • @MoonLight-yu5cw
    @MoonLight-yu5cw Год назад +1

    Thanks 🌹

    • @TheUrbanScholar
      @TheUrbanScholar  Год назад

      Glad you liked the video, do considering subscribing to our channel and supporting us :)

  • @jarrod7920
    @jarrod7920 3 года назад +6

    The frequency domain is all 0. What is wrong?

    • @AwaisKhan95
      @AwaisKhan95 3 года назад +1

      yeah same

    • @viniciush.4740
      @viniciush.4740 3 года назад

      @PRADEEP SINGH noice

    • @tomasvenegas6062
      @tomasvenegas6062 Год назад

      I'm not sure at all. I got the same problem, so I converted my audio into a monophonic version and now it's seems to work.

  • @TsunogaKidz_YMD
    @TsunogaKidz_YMD Год назад

    i am getting all 0 for the frequency domain. I double checked the code and didnt find any difference. I tried to format my audio file into mono and still getting the same result. Can anybody help me?

    • @kevinnaidoo827
      @kevinnaidoo827 Год назад

      Make sure your f is a value 2 x fs or more

  • @Shivamsharma-un6gb
    @Shivamsharma-un6gb 4 года назад +1

    why did you take nfft as 1024

  • @-aditisharma-st2wx
    @-aditisharma-st2wx 2 года назад

    Unrecognized function or variable 'linespace'.
    Error in program22 (line 6)
    t = linespace(0,length(y)/fs,length(y));
    please verify and resolve this error

    • @luthfiakmar6702
      @luthfiakmar6702 2 года назад

      t = linspace(0,length(y)/fs,length(y)0;
      its linspace not linespace.