필터 지우기
필터 지우기

Storing the peak values of a fft

조회 수: 4 (최근 30일)
Gavin Lewis
Gavin Lewis 2018년 2월 12일
댓글: Gavin Lewis 2018년 2월 12일
I have produced a code that will analyse vibration data. What I want to do is record the peak values of the FFT and store them so I can produce a graph showing the peak values of various runs of vibration data.
  댓글 수: 1
Adam
Adam 2018년 2월 12일
What is your problem in doing this? Isn't it just
max( abs( y ) )
where y is your fft result for a given input?

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

답변 (1개)

Matt
Matt 2018년 2월 12일
Hi Gavin
You can find local maxima by using the "findpeaks" function in MATLAB. Below is an example:
x = linspace(0,8*pi);
y = sin(x)./x;
[m,idx] = findpeaks(y);
plot(x,y)
hold on
plot(x(idx),y(idx),'ro')
hold off
You could apply this function to your fft output to find peaks.
Matt
  댓글 수: 1
Gavin Lewis
Gavin Lewis 2018년 2월 12일
Thanks for the reply i keep getting this error = parse_inputs(isInMATLAB,Yin,varargin{:});

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

카테고리

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