ip_01_08.m
来自「现代通信系统(matlab版) 书中的matlab源代码」· M 代码 · 共 14 行
M
14 行
% MATLAB script for Illustrartive Problem 8, Chapter 1.
clear
ts=0.001;
Fs=1/ts;
t=[0:ts:10];
x=cos(2*pi*47*t)+cos(2*pi*219*t);
p=spower(x);
h = spectrum.periodogram;
Hpsd = psd(h,x,'Fs',Fs); % Calculate the PSD
pause % Press a key to see the power in the signal.
p
pause % Press a key to see the power spectrum.
plot(Hpsd) % Plot the PSD.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?