Need help with FFT analysis after free vibrational analyis on a beam

조회 수: 2 (최근 30일)
Hello, I recently performed a free vibrational analysis and these are the results https://drive.google.com/file/d/0B2F1liITq1icMlk1U05sMjktVWM/view?usp=sharing
When I perform the FFT analysis on it I get results far different than the calculated natural frequency (5.1Hz). I believe there is a mistake in my signal sampling. Can anyone help me with this? Thank you.
Code used for FFT analysis:
Fs=20;
T=1/Fs;
L=20;
ctdata=load('Sravs3.dat');
t=ctdata(:,1);
y=ctdata(:,2);
%plot(Fs*t(1:50),y(1:200))
title('signal in time domain')
xlabel('time (ms)')
ylabel('X{t}')
NFFT=2^nextpow2(L);
Y=fft(y,NFFT);
f=Fs/2*linspace(0,1,NFFT/2);
figure
stem(f,2*abs(Y(1:NFFT/2)))
title('Single-sided Amplitude Spectrum of y(t)')
xlabel('Frequency(Hz)')
ylabel('|Y(f)|')

채택된 답변

Star Strider
Star Strider 2016년 5월 10일
Without your 'Sravs3.dat' file, I cannot be certain what the problem is. However, I always define ‘Fs’, ‘T’, and ‘L’ from the data themselves:
ctdata=load('Sravs3.dat');
t = ctdata(:,1);
y = ctdata(:,2);
L = length(t);
T = mean(diff(t));
Fs = 1/T;
See if those changes produce the result you want. (This assumes a constant sampling interval, ‘T’ in your original data.)
  댓글 수: 4

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vibration Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by