How to plot bode plot from FFT data
66 次查看(过去 30 天)
显示 更早的评论
Hi, I would like to get bode plot from FFT data. How do I convert the data obtained(complex values) so that it can be used by the 'bode' function in matlab.
Thanking you.
0 个评论
回答(1 个)
Arkadiy Turevskiy
2013-9-30
here is example code from doc page.
% generate a frequency vector and response data
freq = logspace(1,2);
resp = .05*(freq).*exp(i*2*freq);
% Create a FRD model
sys = frd(resp,freq);
Now simply do
bode(sys)
2 个评论
Arkadiy Turevskiy
2013-10-1
resp=[2+2j,1-3j,4, 5+4j];
freq= % enter the frequency values at which the corresponding fft
% values are obtained
sys=frd*resp,freq);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!