ex_12_13_1.m
来自「清华大学胡广书教授< 数字信号处理理论算法实现>>第二版一书的」· M 代码 · 共 31 行
M
31 行
% ex_12_13_1.m : 习题 12.13
clear all;
close all;
load sunspot.dat;
x=sunspot
x=x-mean(x);
N=length(x);
LEN=4096;
w=0:1/LEN:0.5-1/LEN;
f=0:1/4096:0.5-1/4096;
%
X=abs(fft(x,LEN));
Psd1=X.^2/N;
%
subplot(221)
plot(w,Psd1(1:2048));grid on;
subplot(222)
p_burg1=pBurg(x,3,LEN);
plot(w,p_burg1(1:2048));grid on;
subplot(223)
p_burg2=pBurg(x,6,LEN);
plot(w,p_burg2(1:2048));grid on;
subplot(224)
p_burg3=pBurg(x,9,LEN);
plot(w,p_burg3(1:2048));grid on;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?