FFT of a summation
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello, Attached is a summation function that I am using a FOR loop to implement. I am trying to get the FFT of that function. Attached is an image of what the FFT should look like. Can someone help, please? Thanks!
<<

>>
0 comentarios
Respuestas (1)
Darshan Ramakant Bhat
el 21 de Abr. de 2017
Editada: Darshan Ramakant Bhat
el 21 de Abr. de 2017
To calculate fft the signal should be discrete. You should first sample your signal. Use t=nTs, where Ts is the sampling time. Calculate X(n) for n=1:N, where N is required number of samples. Then you can give this array to fft function.
I have attached a sample script of the same.You can tune the parameters to get the required spectrum. Please have a look at the following documentation for more details.
0 comentarios
Ver también
Categorías
Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!