Video není dostupné.
Omlouváme se.
Plotting the Fourier Transform in Python (DFT/FFT)
Vložit
- čas přidán 21. 09. 2023
- #Electrical Engineering #Engineering #Signal Processing #python #fourierseries #fouriertransform #fourier
In this video, I'l explain how we can use python to plot the (Discrete) Fourier Transform of signals. I'll explain how we can use FFTShift in Numpy to rearrange the Fourier Transform so negative frequencies are on the left and positive frequencies are on the right.
Here is a link to the Python Notebook to follow along: www.dropbox.co...
Thank you so much now I didn't know about fftshift in numpy till today!
This was so helpful, thank you so much!
Thnak You!
Nice video. As a suggestion, if you turned the VS autocomplete dialogues off, I’m sure the viewer’s experience would be much better; it’s very difficult to focus on what you’re saying and typing when modal boxes are popping up and changing all over the place.
This is good suggestion, thanks
Here you have sampled the signal at intervals of 1. what if I want to sample it at a higher frequency?
What is your question?
How to know what are the different frequencies which constructs your main signal? I am asking about the frequency values not its amplitude.
I may make a video on this. To answer your question, it will be divisions of the sampling frequency of your signal (which is 1/T, where T is the time interval between samples). Given a sampling frequency Fs and N samples in the time domain, each index of the FFT will be at k*Fs/N. However at Fs/2, (meaning for all indices larger than N/2), the frequency "wraps around" and becomes negative due to aliasing. So I believe the frequency can be written concisely as (k*Fs/N) - ((N - k)*Fs / N * I(k > N/2)), where I is the indicator function.
Hi Paul. Why do you call DFT in the title when you don't show DFT at all in this video? The DFT operates exclusively on discrete sets of data and produces a spectrum comprising discrete frequency components.
The only way you can compute a frequency domain representation in a computer is with the DFT (the FFT is a way of computing the DFT that uses some symmetries to reduce the number of computations explicitly needed from Log(n^2) to n log2(n)).
Since a computer cannot process an infinite number of datapoints or have infinite precision in amplitudes, you need a signal that is discrete in time and discrete in frequency to do any operation like this.
Hope this helps
@@SignalProcessingWithPaul Thx for explanation.
Hi can I ask you a question?
Yeah sure, go for it
@@SignalProcessingWithPaul Hi, I am working with a sinusoidal signal made of two different frequencies that i have to find. How can i get the indexes that correspond to these frequencies when i apply the fft