FFT of 100 data points

12 次查看(过去 30 天)
happy
happy 2011-11-24
回答: Ryan T 2016-3-18
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.

回答(2 个)

Amith Kamath
Amith Kamath 2011-11-24
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 个评论
happy
happy 2011-11-26
Thank you very much! :D
This is a great help to me..
Thank you again... :)

请先登录,再进行评论。


Ryan T
Ryan T 2016-3-18
This was extremely helpful... Thank you Amith!

类别

Help CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by