| Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
|
#3 |
|
普通会员
注册日期: 2008-08-17
年龄: 36
帖子: 70
声望力: 21 ![]() ![]() |
代码:
clear all
fs=200;
nfft=200;
order=20;
t=0:1/fs:1;
f1=20;
x=sin(2*pi*f1*t)+sqrt(0.1)*randn(size(t));
order=floor(length(x)/5);
[p,f]=pburg(x,order,nfft,fs);
pmax=max(p);
p=p/pmax;
p1=10*log10(p);
plot(f,p1)
grid on;
xlabel('Frequency(Hz)');
ylabel('相对功率谱密度(dB/Hz)');
title('Burg PSD Estimate');
ymin_psd=min(p1)-1;
ymax_psd=max(p1)+1;
axis([0 fs/2 ymin_psd ymax_psd]);
|
|
|
|
|
|
相似的主题
|
||||
| 主题 | 主题作者 | 版面 | 回复 | 最后发表 |
| 函数中的输入参数个数限制 | 暖阳三杯 | MATLAB论坛 | 0 | 2008-04-17 17:31 |
| 【求助】数据输入出错! | weipeng | MATLAB论坛 | 0 | 2007-06-26 12:40 |