Plotting of FRF curves
32 ビュー (過去 30 日間)
古いコメントを表示
I want to plot FRF vs Frequency graph.I have a matrix 'a' of acceleration & a force matrix 'f' both of 30000X1 size, collected in 3secs with a time step of 0.0001 sec.I am using the following steps to plot FRF. a=[ ]; f=[ ]; ffa=fft(a); fff = fft(f); frf, H=ffa./fff; aH =abs(H); I want to plot FRF vs Frequency graph using log(aH) on Y-axis. Pl tell me how to specify x-axis?
1 件のコメント
Rick Rosson
2011 年 7 月 11 日
Please format your code:
http://www.mathworks.com/matlabcentral/about/answers/
回答 (2 件)
bym
2011 年 6 月 29 日
Frequency resolution is sampling frequency divided by FFT points. So for a one sided spectrum, it is (directly from the documentation)
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(y,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
you can then plot as
semilogy(f,aH)
or
loglog(f,aH)
3 件のコメント
参考
カテゴリ
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!