FFT Peak at Zero

조회 수: 8 (최근 30일)
Matlab1364
Matlab1364 2019년 3월 29일
댓글: Mohamad Mossad 2019년 12월 10일
Hello,
I am trying to plot the FFT for a data set I have. I keep getting a peak around zero and have problem with filtering. I also tried the detrend function, but I still don’t get a nice plot. I have attached my data set. I am planning to calculate FFT for the “roll” column from my data set. I appreciate your help.
  댓글 수: 2
dpb
dpb 2019년 3월 29일
The zero component in the FFT corresponds to the DC component of the signal...to remove, subtract mean(roll)
Image Analyst
Image Analyst 2019년 3월 29일
Just what I was going to say, so put it down in the Answers section so you can get credit for it.

댓글을 달려면 로그인하십시오.

답변 (1개)

Catalytic
Catalytic 2019년 3월 29일
편집: Catalytic 2019년 3월 29일
Apply fftshift to your spectrum to see it with DC centered in the plot.
x=csvread('230.csv',1,0);
rollSpectrum=fftshift(fft(x(:,2)));
plot(abs(rollSpectrum))
  댓글 수: 1
Mohamad Mossad
Mohamad Mossad 2019년 12월 10일
about 8 months later, thanks :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by