Problem in FFT and harmonics analysiation
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everybody. I am new to analysis field . I have ust started working on Vibration analysis .I got my datas recorded for mislignment of shaft and want to convert these datas to frequency domain.I tried using FFT to get frequency domain using this
% read data data = xlsread('Healthy20Hztime');
%Frequency Analysis
time = data(:,1); % sampling time
signal = data(:,2); % signal data in Time-Domain
L=length(signal); % Length of signal
Ts=time;
Fs=20000; % sampling frequency
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(signal,NFFT)/L;
a =2*abs(Y(1:NFFT/2+1));
f = Fs/2*linspace(0,1,NFFT/2+1);
figure(1),
plot(f,2*abs(Y(1:NFFT/2+1))); % Plot single-sided amplitude spectrum.
grid off
title(' Healthy 20Hz');
xlabel('Frequency (Hz)');
ylabel('|Y(f)|');
xlim([0 1000]);
Now I would like to get 1x 2x 3x harmonics of these data . Can somebody help me in getting my codes right as well help me find out the harmonics 1x 2x 3x.
Thanks
0 件のコメント
回答 (1 件)
Star Strider
2017 年 3 月 27 日
Use the Signal Processing Toolbox findpeaks function to locate the resonant peaks and their frequencies.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!