How to scale FFT and PSD in Matlab

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024

ความคิดเห็น • 20

  • @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 ปีที่แล้ว +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 ปีที่แล้ว

      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.

  • @byungjinkim6569
    @byungjinkim6569 4 ปีที่แล้ว +10

    what is Y in the code?

  • @gat0tsu
    @gat0tsu ปีที่แล้ว

    thanks alot for the explanation this was extremely helpful

  • @helmutalexanderrubiowilson6835
    @helmutalexanderrubiowilson6835 ปีที่แล้ว

    very clear explanation

  • @balintfurdek552
    @balintfurdek552 4 ปีที่แล้ว

    Thank you Sir ! Great explanation !

  • @vigneshkumar7581
    @vigneshkumar7581 ปีที่แล้ว +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

  • @arathip7792
    @arathip7792 2 ปีที่แล้ว +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.

  • @GiovanniMantovani-tx6oq
    @GiovanniMantovani-tx6oq ปีที่แล้ว +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

  • @mohamadhamoudy8232
    @mohamadhamoudy8232 3 ปีที่แล้ว

    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

  • @RobertoGonzalez-qd5ri
    @RobertoGonzalez-qd5ri 4 ปีที่แล้ว

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

  • @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?