How to scale FFT and PSD in Matlab

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

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

  • @byungjinkim6569
    @byungjinkim6569 5 лет назад +10

    what is Y in the code?

  • @humantribemember
    @humantribemember 4 года назад

    I enjoyed watching this as I needed to refresh. What I loved, is that the explanation really added meaning to the math. If you cant explain it in plain language then it hasn't been understood and David knows his subject!

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

    Thank you so much 🎉 you saved my day with this video. Have a great day.

  • @danielLittle11
    @danielLittle11 2 года назад +1

    If I’m not mistaken, when you divide by the total time, you are no longer plotting the power spectral density, but rather just the power spectrum. The density is the power PER bin, and the power spectrum is the power distribution of the signal as a function of frequency. The reason I’m saying this also, is that dividing by the total time changes your units of what you are plotting. PSD can’t equal PSD/T. They have to be two different things

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

      Before you divide by T, you have energy, which is proportional to how long the measurement is. By dividing it by time, you get the power density. If I mention “PSD” before I divide by T, then that would have been a mistake, it should be energy.

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

    thanks alot for the explanation this was extremely helpful

  • @GiovanniMantovani-tx6oq
    @GiovanniMantovani-tx6oq 2 года назад +1

    Thank you for the amazing video even after 4 years! I only have a question if you don't mind: around 12:07 min, you convert the Normalized PSD to que correct amplitude of the signal. How did you end up with 0.25 = (0.7/sqrt(2))^2? I mean, why the sqrt(2) came up? Thank you so much again!

    • @hgl9590
      @hgl9590 Год назад +1

      the power of a sine wave is A^2/2, where A is its amplitude.

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

    Thanks for the video. How did you ge the power spectrum is calculated as (V/sqrt(2))^2

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

    very clear explanation

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

    Dear sir,
    I have a doubt.
    Insted of 1/ fs * N
    Can we use fs/N .
    That is frequency bin width.
    After taking fft how will choose scaling factor.
    Which scaling factor will choose for calculation of PSD.
    1/fs*N or normalization by fs/N?
    Pls reply sir.

  • @RobertoGonzalez-qd5ri
    @RobertoGonzalez-qd5ri 4 года назад

    Thank you for the explanation! Could it be possible to see the rest of the code?

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

    Professor! Thanks for a nice video. Can you please explain how energy_t and energy_f is calculated?

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

      energy_t=sum(abs(x).^2)/length(x) energy_f = sum(abs(fft(x)).^2)/(1/(Fs*length(x)) or something like that

  • @balintfurdek552
    @balintfurdek552 5 лет назад

    Thank you Sir ! Great explanation !

  • @mohamadhamoudy8232
    @mohamadhamoudy8232 4 года назад

    Dear Professor David S. Ricketts , thanks a lot for this valuable video .
    Please Parseval's Theorem mentioned here is used to compute total Energy in discrete time sequence so why did you use dt to approximate the energy of the signal as if it where a continuous time signal ?
    Also to plot the single sided magnitude spectrum why we have to divide by L in the , why matlab computes the DFT coefficients multiplied by scaling factor ?
    Thanks

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

    I'm coming back to this because I can't seem to figure out how you're integrating your time signal and your frequency signal and getting the same values. I'm using something like "E_Signal = sum(p.^2)/N" and "E_PSD = sum(psd.^2)/N^2". Is this close to what I should be doing? I'm getting drastically different answers

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

      I'm having same doubt, if it is PSD the units should be v^2/HZ. check out the paper ''Tutorial on Scaling of the Discrete Fourier Transform and the Implied Physical Units of the Spectra of Time-Discrete Signals" . I don't know, I'm still confused

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

    I have 15 years temperature data in excell. How can I draw using periodogram?