FFT of 100 data points

12 visualizaciones (últimos 30 días)
happy
happy el 24 de Nov. de 2011
Respondida: Ryan T el 18 de Mzo. de 2016
Hi..
my problem is this:
I have 100 data taken from 0 to 346.5 microseconds. the time interval for each data is 3.5 microseconds. I need to plot the FFT of this data. Please help me..
Thank you very much.

Respuestas (2)

Amith Kamath
Amith Kamath el 24 de Nov. de 2011
if x is your data,
L=length(x);
dt=3.5*10^(-6); %time.
fs=1/dt;
t=(0:1:L-1)*dt; %If you'd like to plot the time signal: plot(t,x)
out=fft(x,L)/L;
figure, plot(fs/2*linspace(0,1,(length(out)/2)+1),abs(out(1:(length(out)/2)+1))),title('One sided Spectrum')
xlabel('Normalized frequency')
ylabel('Magnitude')
  1 comentario
happy
happy el 26 de Nov. de 2011
Thank you very much! :D
This is a great help to me..
Thank you again... :)

Iniciar sesión para comentar.


Ryan T
Ryan T el 18 de Mzo. de 2016
This was extremely helpful... Thank you Amith!

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by