Understanding Power Spectral Density and the Power Spectrum

  Рет қаралды 35,564

MATLAB

MATLAB

4 ай бұрын

Learn how to get meaningful information from a fast Fourier transform (FFT). There is a lot of confusion on how to scale an FFT in a way that provides an understanding of the properties of the time-domain signal, which is addressed in this tech talk. Specifically, it covers how to go from an FFT to amplitude, power, and power density and why you may choose one representation over another-and the scenarios in which they are valid.
Learn more:
- Understanding the Discrete Fourier Transform and the FFT: • Understanding the Disc...
- Equivalent Noise Bandwidth Derivation: bit.ly/3SJoVbI
- Download the MATLAB Live Scripts Used in the Video on GitHub: bit.ly/3OHWucJ
--------------------------------------------------------------------------------------------------------
Get a free product trial: goo.gl/ZHFb5u
Learn more about MATLAB: goo.gl/8QV7ZZ
Learn more about Simulink: goo.gl/nqnbLe
See what's new in MATLAB and Simulink: goo.gl/pgGtod
© 2024 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.

Пікірлер: 46
@BrianBDouglas
@BrianBDouglas 4 ай бұрын
Hi everyone! Thanks for stopping by. If you have any questions about the video (once it's live) or in general about PSDs leave them here and I'll try to get them answered. Thanks!
@srikondapa11e
@srikondapa11e 4 ай бұрын
Compare pwelch, pspectrum and periodogram. Also comment on spectral mask and windowing for standard specific waveforms
@BrianBDouglas
@BrianBDouglas 4 ай бұрын
@@srikondapa11e This video doesn't cover pwelch or any averaging of the power spectrum. It's mostly about how to scale an FFT to get the visualization you're looking for and why you may choose to look at power instead of power density and vice versa. There is a short section on windowing, but only to explain how the scaling we are doing in the video is only valid for rectangular windows. Maybe I can cover your other concerns in a different video. Thanks for the comment!
@leonoortideman3433
@leonoortideman3433 4 ай бұрын
Hi Brian! Thank you so much for all the educational videos about signal processing and control engineering! I was wondering if you could make some videos about wavelet transforms? That would be amazing!
@ang7082
@ang7082 3 ай бұрын
A periodic signal is a Fourier series (i.e. a countable sum of sharp frequencies). I understand that for this a Power Spectrum is more suitable/meaningful than than a PSD. Is it so? Can you elaborate?
@user-rl9ox7sq6k
@user-rl9ox7sq6k 3 ай бұрын
I really love to watch your video! Brian. Very good lectures!
@erickappel4120
@erickappel4120 4 ай бұрын
Dear Brian, As usual, you blew me away! Thankyou!!!
@nicholaselliott2484
@nicholaselliott2484 3 ай бұрын
I've been ignorantly neglecting some of the nuances here. Working the matlab examples which model this are the only way to get these fixed permanently in my brain and to apply them correctly at work. Thanks!
@scttstnfld
@scttstnfld 4 ай бұрын
I see @BrianBDouglas post a video, I watch. Love these Brian!
@vinZukaZ
@vinZukaZ 2 ай бұрын
I have been waiting for a video like this for ages now! Great overwie of a topic that is not well understood by many (me included)!
@munifzeybek4000
@munifzeybek4000 4 ай бұрын
Best explanations and proofs so far. Thanks a lot! Waiting for the similar videos from you Brian. Your help is priceless.
@lohsolomon402
@lohsolomon402 4 ай бұрын
Thanks alot for the video, I’ve been struggling until now🙏🏽
@neilphilip2320
@neilphilip2320 3 ай бұрын
Brilliant exposition of the subject!!!!
@BrianBDouglas
@BrianBDouglas 3 ай бұрын
Thanks!
@Pedritox0953
@Pedritox0953 4 ай бұрын
Great video!
@lautiwillhuber7493
@lautiwillhuber7493 2 ай бұрын
what a beauty of video, great job!
@austinfinnegan7185
@austinfinnegan7185 4 ай бұрын
This video was great! Thnx
@asifmohammadmithu8950
@asifmohammadmithu8950 4 ай бұрын
Great content
@melvinkencana1757
@melvinkencana1757 4 ай бұрын
thanks for the video, really helps my thesis. can you explain the relationship spectral density used by choi (1999) to modified variance ratio into automatic variance ratio?Thanks
@RamavathKavitha
@RamavathKavitha 4 ай бұрын
Hi, can i use the same formulas mentioned in the video for calculating fft, power spectrum & PSD of a random vibration signal?
@mahditabatabaei5776
@mahditabatabaei5776 4 ай бұрын
Thank you for this great video. If we have a complex signal, what is the difference? For FFT or other frequency domain evaluation, should we just on the real part or the image part? Or we can do it on the complex value?
@radon3292
@radon3292 4 ай бұрын
Hi Brian! Big fan of your videos. Is it possible for you to show an actual application of looking at random vibration data, performing FFT and make conclusions after looking at amplitude vs freq and PSD? Thanks!
@dominikz5776
@dominikz5776 4 ай бұрын
Great video Bryan but u could have mentioned the Welch-Method which is the most common for non parametric Systemidentifikation😉
@ps12132
@ps12132 3 ай бұрын
Hi Brian, Can you help me understand the relation between the PSD of a continuous time signal and its sampled version?
@udivyasree6347
@udivyasree6347 4 ай бұрын
how to calculate the PSD for GPS signal at L1 BAND
@SuperAbcd333
@SuperAbcd333 4 ай бұрын
Thanks for the video. My requests are Please talk about the units also. If it is a vibration signals, how volts are becoming v2/Hz or something like that. Also please explain about windowing of time series signal. I heard that it is done to avoid signal leakage stuff Whether twice the maximum frequency as sampling frequency is enough or more is needed? And how to find maximum frequency..
@jayakumarsingaram8218
@jayakumarsingaram8218 4 ай бұрын
Hi, Computation of Power Spectral Density (PSD) is reliant on various factors, including the frequency bin width parameter determined by the number of points in the Fast Fourier Transform (FFT) and the signal bandwidth. This dependency underscores the importance of selecting an appropriate frequency bin width to accurately represent the power distribution across the frequency spectrum. If the bin width is too coarse, the PSD may lack resolution and fail to capture important frequency components, despite a quality input signal. Conversely, overly fine bin widths may introduce noise and artifacts, particularly in regions of low signal-to-noise ratio. Thus, achieving an optimal balance in frequency bin width is essential to ensure that the PSD effectively characterizes the underlying signal's power spectrum. How to reach Optimal balance ? // thanks in advance
@chencanqian73
@chencanqian73 4 ай бұрын
Thank you for you great videos! I was wondering why we are interested in power over amplitude? Why squared?
@BrianBDouglas
@BrianBDouglas 4 ай бұрын
Great question. I do answer that in the video so check back on Wednesday when it's live :)
@-muac7191
@-muac7191 4 ай бұрын
Thanks for this information, I'm interested in this video
@joelevi9823
@joelevi9823 Ай бұрын
this tutorial is great, explained so much things I wanted to know so simple.. thank you sir❤ just one question.. the script graph plot for the power and the PSD looks the same, shouldn't they be different as for PSD we divide by the sampling rate?
@hsbedi88
@hsbedi88 4 ай бұрын
Hi, is there any way to find the sampling frequency of a signal if the instrument doesnt provides it clearly? Thanks in advance.
@GabrieleBunkheila
@GabrieleBunkheila 4 ай бұрын
When a time vector with the sampling times t is available I sometimes have used fs = 1/median(diff(t))
@hsbedi88
@hsbedi88 4 ай бұрын
@@GabrieleBunkheila thanks, I'll explore this more. 👍
@SnehaRupa1
@SnehaRupa1 3 ай бұрын
Thank you @BrianBDouglas, I was waiting for such a video all along. the FFT was the first MATLAB code for my work 3 years ago and it took me this video to really understand what's going on.. Good work @BrianBDouglas and @MATLAB. A quick follow up question on pspectrum function in the close sine waves live script, can you comment on how to select the variable 'lt'? Choosing a higher value for 'lt' always improves the frequency resolution, but the amplitude starts to increase from the actual power as well. Can you suggest an optimal value to choose for 'lt' given a certain sampling frequency and a frequency resolution needed to be achieved by the resulting power spectrum so that the amplitude can somehow still be closer to the real power.
@BrianBDouglas
@BrianBDouglas 3 ай бұрын
Thanks for the comment. 'lt' is the length of the FFT. If 'lt' is shorter than the signal length then increasing it will improve frequency resolution - since you're adding more signal to the FFT. If 'lt' is longer than the signal itself (like I have in my script) then the pscpectrum function zero-pads the data to the length. When you zero-pad, that doesn't change the amplitude of the returned power or the frequency resolution, it just fills in the frequencies that were previously skipped over. So, it shrinks the sampling frequency but it's not actually giving you more resolution. If those frequencies have higher or lower power values then it'll look like the amplitude is changing. But if you keep increasing 'lt' until the frequency spectrum is really dense you'll see the true shape of the spectrum (given the finite data you're looking at). For example, if the signal has a dominant frequency at 10 Hz, but your data length is such that the sampled frequencies are at 9 Hz and 11 Hz, then you'll jump over the peak and the returned power will look small. But if you her-pad the data such that you sample also at 10 Hz, then you've hit the peak and the returned power will look like it increases. But all you're doing is actually sampling at a frequency that has higher power - not changing it. So, as long your computer can perform the FFT in a reasonable amount of time, then you could zero-pad enough to fully capture the shape of the power spectrum - but just remember that you're not improving resolution, just visualization of the spectrum. I explain it a bit in my video called "Understanding the Discrete Fourier Transform and the FFT" starting at 14:40. I'd put a link here but my comments get rejected with links. Good luck!
@PlanetTrantor
@PlanetTrantor 4 ай бұрын
So, if I have a pulse (not periodic) I should use the PSD, right? Can I calculate an amplitud graphic or is that a wrong idea? Edited: forgot it, Now I understand. Amplitud is only for periodic signals. Thanks a lot, great video.
@BrianBDouglas
@BrianBDouglas 4 ай бұрын
If you have a non-periodic signal then time-frequency plots are usually the way to go. For example, you could take an FFT of a small subset of the data at the beginning, then move to the next set of data and take and FFT again, and move it again and so on. In this way, you can see how the amplitude/power/power density changes over time.
@tathagatabiswas9
@tathagatabiswas9 4 ай бұрын
Hi everyone, I am trying to check whether a given audio signal qualify a recommended power (in dBA) across specific frequency ranges. The audio signal is normalized between -1 to 1, so after doing the FFT, the PSD values are negative dB values. However the recommended dB(A) values are all positive and I cannot understand how to translate this to positive values. How to tackle this problem?
@BrianBDouglas
@BrianBDouglas 4 ай бұрын
I'm not sure of the question exactly, but if you are looking at normalized audio data then haven't you removed any notion of absolute power? You've already manipulated your audio signal and so a PSD would return the power density of that normalized signal and there wouldn't be a way to compare that to the recommended power density levels. Could you give more details?
@tathagatabiswas9
@tathagatabiswas9 4 ай бұрын
Hi Brian, thanks for your wonderful videos and replying to my concern. So the audio file is in wav format. I am reading it in matlab and the converted variable is between (-1,1). Here i am unable to find the normalising constant. However when I play it using sound() command, I can hear the audio fine. How is the actual audio power conversion happening in these functions? Now, On finding the PSD of the audio wave, the values of power are in negative dB (as it is normalised) hence I am unable to find the actual power of the audio signal. Will the power change if I assume the normalising constant based on recording device depth (like 16bit/24bit)?
@kurtgn
@kurtgn 3 ай бұрын
at 5:00 why have the blue and violet sin() the same argument?
@donaldbagwell6309
@donaldbagwell6309 20 күн бұрын
would love to send you a 30 minute file of 20hz (u,v,w,T) temperature and wind velocity data from a CSAT-3D sonic anemometer; How would to segment (e.g. 5 minutes 10 minutes etc.) the data for FFT analysis and producing the PSD and turbulence spectra (i.e. -5/3 slope
Understanding the Discrete Fourier Transform and the FFT
19:20
The intuition behind the Nyquist-Shannon Sampling Theorem
11:25
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 24 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 8 МЛН
What is the PSD in Vibration?
31:05
Vibration Research Corporation
Рет қаралды 33 М.
What Are Phased Arrays?
17:36
MATLAB
Рет қаралды 103 М.
REL #17 Vector and IQ constellation diagrams on an oscilloscope
49:01
Rudi’s Electronics Lab
Рет қаралды 7 М.
The Fourier Series and Fourier Transform Demystified
14:48
Up and Atom
Рет қаралды 794 М.
Everything You Need to Know About Control Theory
16:08
MATLAB
Рет қаралды 520 М.
Understanding the Z-Plane
16:25
MATLAB
Рет қаралды 9 М.
Welch's method for smooth spectral decomposition
11:14
Mike X Cohen
Рет қаралды 38 М.
Understanding Basic Spectrum Analyzer Operation
11:31
Rohde Schwarz
Рет қаралды 145 М.
172N. Overview of random variable, PSD, auto- and cross-correlation
47:50
50,000,000x Magnification
23:40
AlphaPhoenix
Рет қаралды 5 МЛН
Смартфон УЛУЧШАЕТ ЗРЕНИЕ!?
0:41
ÉЖИ АКСЁНОВ
Рет қаралды 1,2 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 59 МЛН
Сколько реально стоит ПК Величайшего?
0:37