How to Compute FFT and Plot Frequency Spectrum in Python using Numpy and Matplotlib

  Рет қаралды 109,095

1M views

1M views

Күн бұрын

Пікірлер
@eefunhuang6958
@eefunhuang6958 Жыл бұрын
Thank you! The DC point I think it’s because it doesn’t have the negative or the complex conjugate component to add up the amplitude, so it doesn’t need to double
@greghumphris174
@greghumphris174 3 ай бұрын
Thank you for the video. I think I will try to implement it as my first Fourier program using numpy. Great video!
@WACkZerden
@WACkZerden Жыл бұрын
thank You for showing how to perform FFT in Python. this is helping me understand it better
@arirajuh
@arirajuh 3 жыл бұрын
Thank you for the learning steps. Goal Construct Perform or Compute Plot : Show case of time domain signals
@cdevagiri
@cdevagiri Жыл бұрын
Thank you so much. Very helpful. Now I understand why the magnitude doubles when converting from double-sided spectrum to single sided one
@whitehackeryoon7844
@whitehackeryoon7844 3 жыл бұрын
You really help me to finish my thesis haha. Thanks man👨‍💻👨‍💻
@SLguitarGuy
@SLguitarGuy 3 жыл бұрын
Very nice❤I hope U'll reach 1 million views for this
@JJGhostHunters
@JJGhostHunters Жыл бұрын
Great content! I wish I could find an example of a real time signal with an unknown "frequency" instead of a contrived sine wave signal. With a contrived signal the time divisions are established automatically. Maybe I am missing something.
@raspicc
@raspicc 2 жыл бұрын
Me sirvió bastante, muchísimas gracias saludos desde Perú.
@davidsalazar154
@davidsalazar154 2 жыл бұрын
Thank you so much ! Easy to understand and aplicate !
@hectorsanchezsantillan7190
@hectorsanchezsantillan7190 2 жыл бұрын
Thank you, this tutorial Is gold
@MrELMOSAFER
@MrELMOSAFER 6 ай бұрын
Thank you. The explanation is good and some parts can be understood from it, but the variable names are very confusing and the code cannot be understood if you look at it without the explanation especially for beginners in this field of programing
@UsamaAhmedZeki
@UsamaAhmedZeki 2 жыл бұрын
Thank you, Absolutely beautiful.
@mikefredd3390
@mikefredd3390 3 жыл бұрын
Great summary of fft() !
@hrudaideepthi3346
@hrudaideepthi3346 4 жыл бұрын
Very informative
@doditsuprianto6474
@doditsuprianto6474 3 жыл бұрын
good explaination. good job. Thanks
@prasannagururajan5056
@prasannagururajan5056 2 жыл бұрын
Great explanation - thanks
@ChrisYSmithY
@ChrisYSmithY 3 жыл бұрын
very good demo! Thank you!
@johnsonauk
@johnsonauk Жыл бұрын
Awesome teaching thank you, but I do not understand why you use (N-1)*tstep in time step instead of (N) * tstep?
@gajulasrimannrayana3245
@gajulasrimannrayana3245 2 жыл бұрын
Thanks a lot, clarifying fft
@Joe0x7F
@Joe0x7F 3 ай бұрын
Excellent! Thank you!
@cerita-ceritanabi3343
@cerita-ceritanabi3343 Жыл бұрын
Hi, I want to analyze an SNR using a CSV file. I want no the signal from 0-200 Hz. In CSV file only has the data on G. What should I do for SNR analysis?
@kevinshao9148
@kevinshao9148 3 жыл бұрын
Thanks for the great video! One question at 7:21, what is it to divide by len(time series)? Thank you!
@kevinshao9148
@kevinshao9148 3 жыл бұрын
Hi could you please help with my question above?
@SimeonPlays
@SimeonPlays 2 жыл бұрын
it divides by how many times he counts the time series
@kevinshao9148
@kevinshao9148 2 жыл бұрын
@@SimeonPlays Thank you so much for your reply! Let me to refresh my memory and try to understand what you explain.
@WACkZerden
@WACkZerden Жыл бұрын
very helpful
@Seff2
@Seff2 3 жыл бұрын
very usefull. What do you mean with DC component?
@1mviews876
@1mviews876 3 жыл бұрын
It means 0Hz or you can think of it as the average of the signal.
@scottmather6441
@scottmather6441 3 жыл бұрын
Thank you very much!
@nb664rbk
@nb664rbk 3 жыл бұрын
Why the number of samples N = Fs/F0? Is there a mathematical reason behind it or just because you need an upper bound for your intervals?
@prasannagururajan5056
@prasannagururajan5056 2 жыл бұрын
Sampling frequency is 2000 Period = 1/2000 = 0.005 which is the time taken for 1 cycle to complete Signal frequency = 100 Period = 1/100 = 0.01 The period (time) corresponding to signal frequency can be divided between 0 to 0.01. This is the time boundary Next question is how many time intervals of 0.005 is between 0 to 0.01 = 20 Other way of saying is How many samples can be taken at sampling frequency of 2000 considering the period of 0.01 = 2000 * .01 or 2000/100 = 20 20 samples can be taken at the time interval between 0 sec to 0.01 secs. Therefore this period is divided in to 20 , 1 per sample.
@mohanraj411
@mohanraj411 3 жыл бұрын
Thanks for ur video.Can u try the same without fft inbuilt function.
@1mviews876
@1mviews876 3 жыл бұрын
Yes, it is possible. You may simplify refer to the definition of FFT or DFT. I believe Numpy is doing the same internally, they just put a wrapper for users.
@rupeshkadam7600
@rupeshkadam7600 3 жыл бұрын
Very informative and great explanation. Can you make full tutorial on Numpy and Scipy? Because this tutorial I got interest in this. Thank you!
@1mviews876
@1mviews876 3 жыл бұрын
There are already quite some good videos about Numpy and Scipy out there. Tks for your comment ;)
@rishisurya6008
@rishisurya6008 3 жыл бұрын
For which signal you have done this, how can i insert a audio signal to apply fft algorithm ?
@sujoymondal7511
@sujoymondal7511 2 жыл бұрын
Follow this channel for your question kzbin.info/www/bejne/e32zna2Og6ajaZY
@scottmather6441
@scottmather6441 3 жыл бұрын
How could I change it to plotting incoming data from a COM port? Thanks!
@bodireddigarimythilireddy1459
@bodireddigarimythilireddy1459 3 жыл бұрын
Y we are having negative values in time domain signal ..in the final output picture
@1mviews876
@1mviews876 3 жыл бұрын
try set_xlim(0,)
@nuclierrobin5272
@nuclierrobin5272 3 жыл бұрын
Is fstep = f0 because fstep = fs/n and n= fs/f0 so that means fstep = fs/fs/f0
@yoyoke1
@yoyoke1 Жыл бұрын
Nice!
@Waterlmelon
@Waterlmelon 2 жыл бұрын
good video thanks
@liamgaeuman4990
@liamgaeuman4990 Жыл бұрын
fstep is just f0? is that right?
@jitendrapagare8970
@jitendrapagare8970 2 жыл бұрын
Which software have you used
@code2compass
@code2compass Жыл бұрын
What is the purpose of N-1
@noviaantika5276
@noviaantika5276 3 жыл бұрын
Hi, I've tried your numpy fft code using rectangular function input and the result is not as expected. It is different from your previous video with sin function (analytical function) for rectangular function. Would you check it?
@1mviews876
@1mviews876 3 жыл бұрын
pls share your code
@sujoymondal7511
@sujoymondal7511 2 жыл бұрын
Follow this channel for updates kzbin.info/www/bejne/e32zna2Og6ajaZY
@jahanvichaudhary81
@jahanvichaudhary81 2 жыл бұрын
Thank you so much
@et4493
@et4493 2 жыл бұрын
what if I don't know the frequency of the function (i.e. it is a non-periodic function)?
@robytoby1544
@robytoby1544 2 жыл бұрын
input the data and run the fft, the point of the fft is to break up a function into its constituent sine wave functions without knowing frequencies.
@panosp5711
@panosp5711 3 жыл бұрын
How plt.plot() calculates in which frequency, each magnitude belongs?
@sujoymondal7511
@sujoymondal7511 2 жыл бұрын
Follow the link kzbin.info/www/bejne/e32zna2Og6ajaZY
@Mephysto9292
@Mephysto9292 3 жыл бұрын
nice !
@fajryadir332
@fajryadir332 3 жыл бұрын
thanks dude
@excelsior2229
@excelsior2229 3 жыл бұрын
Can you send the code please
@1mviews876
@1mviews876 3 жыл бұрын
you may pause it video and type the codes by yourself. there're only a few lines :)
@sujoymondal7511
@sujoymondal7511 2 жыл бұрын
Another demo and code can be found in kzbin.info/www/bejne/e32zna2Og6ajaZY
@ТатьянаДударева-б9ф
@ТатьянаДударева-б9ф 2 жыл бұрын
thank you
@robertovalenzuela8860
@robertovalenzuela8860 3 жыл бұрын
'numpy.ndarray' object has no attribute 'plot' :O
@TypicallyThomas
@TypicallyThomas 2 жыл бұрын
This is honestly one of the least helpful tutorials I've ever seen
@baghdadiabdellatif1581
@baghdadiabdellatif1581 Жыл бұрын
Thank you
@gunjan6652
@gunjan6652 5 ай бұрын
Thank You
Understanding the Discrete Fourier Transform and the FFT
19:20
FFT in excel for spectral analysis
11:33
Mike Holden
Рет қаралды 132 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
Denoising Data with FFT [Python]
10:03
Steve Brunton
Рет қаралды 179 М.
TI Precision Labs - ADCs: Fast Fourier Transforms (FFTs) and Windowing
10:47
Spectrogram Examples [Python]
9:59
Steve Brunton
Рет қаралды 61 М.
Plotting the Fourier Transform in Python (DFT/FFT)
10:46
Signal Processing with Paul
Рет қаралды 26 М.
Extract Musical Notes from Audio in Python with FFT
10:26
Jeff Heaton
Рет қаралды 28 М.
The Fast Fourier Transform (FFT): Most Ingenious Algorithm Ever?
28:23
The Fast Fourier Transform
17:27
Serrano.Academy
Рет қаралды 3 М.