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