How can i write the frequency vector for frequency range 5-400 hz using 50 frequncy points
5 次查看(过去 30 天)
显示 更早的评论
How can i write the frequency vector for frequency range 5-400 hz using 50 frequncy points
0 个评论
采纳的回答
Wayne King
2012-7-13
Hi Lisa, you cannot have 50 frequencies in 30 elements. Obviously whatever Q is here (is it a power spectral density estimate?) is an estimate at only 30 frequency points.
You can space your frequency vector to cover 5 to 400 Hz with fifty points and then select a subset of those 50 so that you can plot(f,Q)
freq = linspace(5,400,50);
% just making up some junk data to plot
Q = abs(randn(30,1));
plot(freq(1:30),Q)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!