📄 ip_01_08.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -