exa110701_pwelch.m
来自「笔者在前人研究的基础上」· M 代码 · 共 21 行
M
21 行
%-------------------------------------------------------------------------
% exa1100701_pwelch.m, for example 11.7.1 and fig. 11.5.1(d)
% to estimate the PSD of x(n) by Welch average;
%--------------------------------------------------------------------------
clear;
% 调出数据;
load test x;
N=256;
Fn=-0.5:1/N:0.5-1/N;
plot(real(x));
figure;
plot(imag(x));
% 用 Welch 平均估计试验数据的功率谱;
xpsd=pwelch(x,hamming(33),16,N,'whole');
figure;
plot(xpsd);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?