How to plot fft in MATLAB from the given x and y values in text format using rectangular windowing?
Mostrar comentarios más antiguos
Hello,
I am new in MATLAB. I am having a data base which contains 2048 , x values correspond to y values in txt format. for example
x y
1 89
2 98
. .
. .
. .
2048 96
I just want to ask a question how to plot fft of these values using rectangular windowing? Please suggest the MATLAB code of this. I will be highly obliged of you because it is very important for my project.
3 comentarios
Dishant Arora
el 18 de Jul. de 2013
Rectangular window is like no window at all. So, you can plot fft using:
stem(abs(fft(y)))
Sanjay Saxena
el 19 de Jul. de 2013
Dishant Arora
el 19 de Jul. de 2013
Are you getting multiple peaks?? It might happen due un-coherent sampling. You must know what are spectral leakage and scalloping losses.
Respuestas (0)
Categorías
Más información sobre Fourier Analysis and Filtering en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!